|
Let me guess, you're compiling on a 64bit architecture.
sizeof() is a compile-time instruction and will, in your case, return the size of the pointer for the character array. Try declaring the a macro for the size of the array & use that macro for the recv() call.
|