why the usage of gets() is dangerous.



Hi all,

Whenever I use the gets() function, the gnu c compiler gives a
warning that it is dangerous to use gets(). why...?

regards,
jayapal.
.



Relevant Pages

  • Re: help makeing telnetd
    ... utility.c:214: warning: pointer targets in return differ in signedness ... Get the GCC manual from the GNU website and read ... Is he using the Gnu compiler tho? ...
    (comp.os.linux.misc)
  • Re: why the usage of gets() is dangerous.
    ... Whenever I use the getsfunction, the gnu c compiler gives a ... warning that it is dangerous to use gets. ... the input buffer. ...
    (comp.lang.c)
  • gets() - dangerous?
    ... Whenever I use the getsfunction, the gnu c compiler gives a ... warning that it is dangerous to use gets. ... possibility of array overflow? ...
    (comp.lang.c)
  • Re: why the usage of gets() is dangerous.
    ... Whenever I use the getsfunction, the gnu c compiler gives a ... warning that it is dangerous to use gets. ... Karthik Balaguru ...
    (comp.lang.c)
  • Re: why the usage of gets() is dangerous.
    ... Whenever I use the getsfunction, the gnu c compiler gives a ... warning that it is dangerous to use gets. ... and ggets(). ...
    (comp.lang.c)