|
Using gets() is bad juju because there is no limit to how much data it can suck in. This can lead to overflow errors. The fgets() function has a limit, which is the second argument - the sizeof(line) statement. It's perfectly safe to use, and in fact should be used instead of gets().
__________________
1984 300TD
|