When I try to compile C code that uses the
gets() function with GCC,
I get this
(.text+0x34): warning: the `gets' function is dangerous and should not be used.
I remember this has something to do with stack protection and security, but I'm not sure exactly why?
Can someone help me with removing this warning and explain why there is such a warning about using
gets() is so dangerous then why can't we remove it?