Updated to fix appending of formatted CString to handle overflow properly. An attempt to append a formatted string that is too long will write data to the end of the buffer, but will not update bytesUsed and will return NULL to indicate failure.