memory: squeal when there is something wrong, instead of stumbling on
When copying a string, source and destination may not be equal -- complain loudly when they are, instead of failing to free memory. Also, instead of freeing the destination string and then allocating it afresh, just reallocate it -- that should be slightly quicker.
Showing
+3 -3
Please register or sign in to comment