Skip to content

Instantly share code, notes, and snippets.

@CrBoy
Created March 8, 2011 06:41
Show Gist options
  • Save CrBoy/859948 to your computer and use it in GitHub Desktop.
Save CrBoy/859948 to your computer and use it in GitHub Desktop.
An example showing why to use fgets() instead of gets() to prevent buffer overflow
http://www.ithome.com.tw/itadm/article.php?c=66229
#include <stdio.h>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment