Sscanf warning: String buffer overflow
#7

Quote:
Originally Posted by RealCop228
Посмотреть сообщение
Have you ever coded something in a server before? Do you know how often I type messages over 128 characters? I'll answer that for you- VERY often! The maximum size of any strings sent to the client is 128 cells, you may as well allow people to use them all. Honestly, the main problem is creating a 5000 cell string and really only needing 100 cells of it.

See this for more information: https://sampforum.blast.hk/showthread.php?tid=55261
I'ma talking about smaller strings, like an identifier, like "type enter to enter". A string to hold ENTER would need only 6 cells, so why would I make 128 cells for a string that needs only 6? Just to get around the warning?
Reply


Messages In This Thread
Sscanf warning: String buffer overflow - by hellangel - 19.12.2011, 01:33
Re: Sscanf warning: String buffer overflow - by Hoborific - 19.12.2011, 01:58
Re: Sscanf warning: String buffer overflow - by hellangel - 19.12.2011, 02:02
Re: Sscanf warning: String buffer overflow - by Scenario - 19.12.2011, 02:06
Re: Sscanf warning: String buffer overflow - by hellangel - 19.12.2011, 02:08
Re: Sscanf warning: String buffer overflow - by Scenario - 19.12.2011, 02:11
Re: Sscanf warning: String buffer overflow - by hellangel - 19.12.2011, 02:15
Re: Sscanf warning: String buffer overflow - by Scenario - 19.12.2011, 02:17
Re: Sscanf warning: String buffer overflow - by hellangel - 19.12.2011, 02:28
Re: Sscanf warning: String buffer overflow - by Calgon - 19.12.2011, 02:35

Forum Jump:


Users browsing this thread: 1 Guest(s)