Monday, February 23, 2009

gets() is bad

Using the gets() function in the C header stdio.h can cause a variety of unwanted side-effects (including buffer overflows). Instead, use fgets(), and specify stdin as the file pointer.
Author : Sean

0 nhận xét:

Post a Comment