sscanf warning: String buffer overflow.
# support-forum
c
before my vps machine explode my server_log prints this two msgs
Copy code
[20:30:03] sscanf warning: Strings without a length are deprecated, please add a destination size.
[20:30:03] sscanf warning: String buffer overflow.
the lag in my machine and this messages are related? what is it?
g
You need to specify the string size on the sscanf pointer
Copy code
cpp
new string[128];
if(sscanf(args, "s[128]", string))
c
hmmm okey, i have to put it in every sscanf, i never limit, just put s this
sscanf warning: String buffer overflow.
could be the stuff that heavy my CPU?
21 Views