SA-MP Forums Archive
Delete Account - 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)
+--- Thread: Delete Account (/showthread.php?tid=524820)



Delete Account - FaZeRs - 08.07.2014

Players are in server and just for one moment, they need register for new

This i get in logfiles at that moment.
Quote:

[20:07:25] sscanf warning: String buffer overflow.




Re: Delete Account - Konstantinos - 08.07.2014

https://github.com/Y-Less/sscanf/wik...uffer_overflow

This also happens when you use "s" specifier without its max length (as it's needed). That should be "s[size_here]" instead.


Re: Delete Account - Jefff - 08.07.2014

if you are using in command only /cmd [text] and max text lenght is more than for examlpe 24 characters don't use sscanf because
Quote:

Currently there is nothing you can do about this from a programming side (you can't even detect it - that is a problem I intend to address)

if(isnull(params)) SCM ... usage /cmd [text]
else if(strlen(params) > 24) text can't be more than 24 characters