|
|
|
|
|
by Gibbon1
3980 days ago
|
|
But gets() isn't just one unsafe function all of the classic string functions are totally unsafe, and most of their safer replacements are similarly bad. They do things like take buffer size and then will truncate strings and leave off the terminating zero. So then the next string function will blow up. I think really when people manipulate strings in c/c++ they use the safe functions that come with frameworks. |
|