What is this warning in my server log ? how to fix it ?
#1

Код:
[16:29:49] sscanf warning: String buffer overflow.
[16:31:28] sscanf warning: String buffer overflow.
[16:31:53] sscanf warning: String buffer overflow.
[16:32:09] sscanf warning: String buffer overflow.
[16:32:23] sscanf warning: String buffer overflow.
Reply
#2

A cmd(s) string is crossing.

pawn Код:
new string[xx];
How ever, If you know which cmd then post here.
Reply
#3

In simple words, it exceeds the size you specified in the sscanf line with the "s" specifier. An example:
pawn Код:
// in a /test command
if (sscanf(params, "is[10]", integer, string)) ...
and you type in-game: /test 10 abcdefghijklmnopqrstuvwxyz then the warning will be given because the max size was 10 but I typed something with lenght of 26.
Reply
#4

oh thank you both, that's usefull
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)