what the problem with this in sscanf?
#3

in that code i always get string buffer overflow example i wrote a this command /credit 0 name drich or /credit 0 location drich then the string overflow will appear but when i type /credit 0 name dric or /credit 0 location dric it does not appear and i think the problem is in this line

new name[32];
if(sscanf(params, "is[10]s[32]",i,option,name))

and this line

new loc[32];
if(sscanf(params, "is[10]s[32]",i,option,loc))
Reply


Messages In This Thread
what the problem with this in sscanf? - by drichie - 07.07.2013, 05:51
Re: what the problem with this in sscanf? - by SwisherSweet - 07.07.2013, 06:33
Re: what the problem with this in sscanf? - by drichie - 07.07.2013, 07:12
Re: what the problem with this in sscanf? - by Konstantinos - 07.07.2013, 09:19
Re: what the problem with this in sscanf? - by drichie - 08.07.2013, 13:35
Re: what the problem with this in sscanf? - by drichie - 08.07.2013, 13:53
Re: what the problem with this in sscanf? - by drichie - 08.07.2013, 14:39
Re: what the problem with this in sscanf? - by Konstantinos - 08.07.2013, 15:28

Forum Jump:


Users browsing this thread: 2 Guest(s)