SFML community forums
Help => Network => Topic started by: EiTkoCaT on November 20, 2010, 08:33:30 pm
-
Hello,
I'm using SFML to get messages from clients. I'm sending a msg, for exemple: "Schogini Systems", but somewhy, I get in the server this "Schogini Systems╠╠╠╠▌óea└÷^♦]ז╖".
When I'm sending MSGS from a SFML client it's all OK.
WTF?
-
You probably forget to end your string with a '\0', so when you display it you get all the garbage located after your characters in memory, until a 0 is found.
-
You are right..