Skip to content

Instantly share code, notes, and snippets.

@hu2di
Created April 10, 2017 02:40
Show Gist options
  • Save hu2di/0df1a29f9d47a76945fb89ed13895adc to your computer and use it in GitHub Desktop.
Save hu2di/0df1a29f9d47a76945fb89ed13895adc to your computer and use it in GitHub Desktop.
printf - function isn't safe
#include<stdio.h>
int main()
{
char input[200];
while(1)
{
printf("\n\n");
gets(input);
printf(input);
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment