sscanf2
#1

I have this warning message how could i fix that

sscanf warning: String buffer overflow.

My server went down, probably this is the reason.
Reply
#2

The warnings says it...

You have something like this(I think it's like this):

pawn Code:
new buff[64];
if(sscanf(bla("s[128]", buff)))
Change:

pawn Code:
if(sscanf(bla("s[128]", buff)))
To:

pawn Code:
if(sscanf(bla("s[64]", buff)))
Reply
#3

bwah sorry. a little descripton what happened.

Server runned normaly for some while - about month or less .
Now most of the commands wont work and even onplayertext callback wont work. Any string formatting wont work.

edit:
why i cant use 128?

edit:
and also all gettick count wont work, if i have gettick count check it would say that its already working.
Reply
#4

u mean if my buffer is 16 and im trying to put in there with sscanf 32 "s[32]" it would show the error ?

How i can prove it ?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)