What would the alternative be here? Allocate a new region, copy everything over and free the other region? Or is there something better?
> I generally recommend against scaling string allocations by sizeof (char); that's always 1 so it doesn't do anything. Some people seem to feel that it's part of a general usage pattern that makes the intent more clear, though.
Isn't this just a habit born out of portability concerns?