Delete Account
#1

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.

Reply
#2

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.
Reply
#3

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)