Rajesh Fowkar forced the electrons to say:
> On our old SCO server there was a C program for some string comparison etc.
> 
> We compiled the same program under Linux. Though it compiles without any
> problems, it just gives one warning that gets function is dangerous.

How nice of gcc. gets() is one of those functions which a programmer
should avoid, since it accepts user input without buffer overrun
checking.

> But our problem is after running the binary with the required parameters it
> is not giving us the desired output.

That shouldn't be a gets() problem. How did you run the program and what
was the desired o/p? The actual o/p?

Binand


----------------------------------------------
The mailing list archives are available at
http://lists.linux-india.org/cgi-bin/wilma/LIH

Reply via email to