sscanf quiet specifiers
#2

Use the optional length parameter:
pawn Код:
if (!strcmp(item, "apple ", true, 6))
About string buffer overflow, it expects 6 characters but you specify the rest of the parameters so ignore them:
pawn Код:
if (sscanf(params, "s[7]{s[50]}", action))
Just for your information, the string size is ignored in quite specifiers.
Reply


Messages In This Thread
sscanf quiet specifiers - by GoldenLion - 21.06.2017, 13:49
Re: sscanf quiet specifiers - by Konstantinos - 21.06.2017, 14:00
Re: sscanf quiet specifiers - by GoldenLion - 21.06.2017, 18:59
Re: sscanf quiet specifiers - by GoldenLion - 21.06.2017, 21:05

Forum Jump:


Users browsing this thread: 1 Guest(s)