View Single Post
  #10  
Old 03-10-2010, 04:14 PM
OldPokey's Avatar
OldPokey OldPokey is offline
0-60 in 10 minutes flat
 
Join Date: Sep 2006
Location: Middletown MD
Posts: 527
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

Reply With Quote