Possible Duplicate:
Why is the `gets' function is dangerous? Why should not be used?
Just started a tutorial in socket programming. But I got this error after compiling with gcc. How to overcome this gets dangerous?
In function `main':
tcpserver.c:(.text+0x1f3): warning: the `gets' function is dangerous and should not be used.
This line of code was obtained from internet (http://www.prasannatech.net/2008/07/socket-programming-tutorial.html):
printf("\n Your message (hit q or Q to quit): ");
gets(send_data);