guh.  Modifying the pointer isn't the relevant issue; what matters is the data at which it points.  Calling realloc() on the pointer would be a bad thing, but changing the data at which it points is OK, within limits.