View Single Post
Old July 22nd, 2016   #4
hamish
Member
 
hamish's Avatar
 
Join Date: Apr 2009
Location: Dartmoor, Devon, England
Posts: 54
Send a message via Skype™ to hamish
Default

A NULL is a character, so 32 + a NULL is not allowed in any situation.
One on the problems created by using a NULL, is that on sending 32 characters, your NULL will be lost which then generates inconsistency.

The correct answer is to send the correct string length, without any null termination.
__________________
______________________________________________
Hamish Dumbreck
hamish is offline   Reply With Quote