PDA

View Full Version : sscanf warning


Lidor124
22/09/2013, 10:09 PM
[01:06:12] sscanf warning: Strings without a length are deprecated, please add a destination size.

it shown up on server log, if the length of strings not enough as i figure, how can i find them in the script?

iJumbo
22/09/2013, 10:28 PM
You have to define de lenght of the string..

"s[lenght]"

Lidor124
23/09/2013, 07:20 AM
I know it already.. but how can i find the string without string[length]? then i will make it won't show again...

RajatPawar
23/09/2013, 08:15 AM
new array[ 50 ];
sscanf(..., "s[50]", array)

No errors.


new array[ 50 ];
sscanf(.. "s", array)

Errors.