View Single Post
Join Date: Jun 2005
Posts: 2,011
Reputation: Rashakil Fol is just really nice Rashakil Fol is just really nice Rashakil Fol is just really nice Rashakil Fol is just really nice 
Solved Threads: 137
Team Colleague
Rashakil Fol's Avatar
Rashakil Fol Rashakil Fol is online now Online
Super Senior Demiposter

Re: New Parser Generator

 
0
  #7
Dec 14th, 2008
Originally Posted by frencheneesz View Post
How is it broken? It looks perfectly valid to me, and it works. What do you suggest I do if gets and fgets crash my program?
Your code has no way of checking if it is overflowing the buffer which has been passed into it. You shouldn't use gets for the same reason. Paste an example where fgets is behaving buggily and I can take a look.
Reply With Quote