sscanf warning: String buffer overflow. - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: sscanf warning: String buffer overflow. (
/showthread.php?tid=196353)
sscanf warning: String buffer overflow. -
armyoftwo - 05.12.2010
Код:
sscanf(line, "p<|>{iffiiiiiii}i{ii}s[24]is[40]", Rankk, CharacterName, MemberID, LastSeen );
What's wrong?
Re: sscanf warning: String buffer overflow. -
JaTochNietDan - 05.12.2010
It means that the string length specified in sscanf is longer than the array variable you are saving it to.
Re: sscanf warning: String buffer overflow. -
armyoftwo - 05.12.2010
Thanks, fixed
Re: sscanf warning: String buffer overflow. -
JaTochNietDan - 05.12.2010
Quote:
Originally Posted by ******
Actually it means that the string you tried to store in the buffer is longer than the specified string.
|
Ah I see, apologies for the lack of correct explanation, I don't use the new sscanf, I still use the good old include version