个人Blog: hhktony.com
全部博文(553)
分类: LINUX
2011-12-25 20:02:52
GFree_Wind2011-12-26 12:27:18
gets很危险。。。不要用
Never use gets(). Because it is impossible to tell without knowing the data in advance how many characters
gets() will read, and because gets() will continue to store characters past the end of the buffer, it is
extremely dangerous to use. It has been used to break computer security. Use fget