Sscanf's "frrezing" strings
#9

Dont triple post, wait for someone to answer.


The first warning is basically straight forward. You are using "s" which is deprecated. You need to add a size to the strings, so ...do that. An example would be: "s[127]" where 127 is the size (size is dependent to your string size, dont just use "127" all the time).

The sscanf buffer overflow warning means that your string length is equal to, and or greater than the actual variable's size. You're string specifier size should always be one less then the actual size, otherwise when the terminating NULL character is appended, it will be out of boundaries and could even corrupt something.
Reply


Messages In This Thread
Sscanf's "frrezing" strings - by LZLo - 22.12.2010, 17:49
Re: Sscanf's "frrezing" strings - by [MWR]Blood - 22.12.2010, 17:51
Re: Sscanf's "frrezing" strings - by LZLo - 22.12.2010, 17:56
Re: Sscanf's "frrezing" strings - by LZLo - 22.12.2010, 17:59
Re: Sscanf's "frrezing" strings - by Scenario - 22.12.2010, 17:59
Re: Sscanf's "frrezing" strings - by LZLo - 22.12.2010, 18:00
Re: Sscanf's "frrezing" strings - by LZLo - 22.12.2010, 18:03
Re: Sscanf's "frrezing" strings - by LZLo - 22.12.2010, 18:10
Re: Sscanf's "frrezing" strings - by Kyosaur - 22.12.2010, 18:20
Re: Sscanf's "frrezing" strings - by armyoftwo - 22.12.2010, 18:20

Forum Jump:


Users browsing this thread: 1 Guest(s)