The gets() function is known to be a security risk. It is strongly recommended that you not use it in your applications. Use fgets() instead.
This implementation prints out the following warning whenever the gets() function is called:
warning: this program uses gets(), which is unsafe.
You can disable the warning by setting the environment variable DISABLE_GETS_WARNING.