Skip to content

Commit

Permalink
remove gets which gave compiler warning
Browse files Browse the repository at this point in the history
  • Loading branch information
crowell committed Feb 9, 2016
1 parent 9704eee commit 2859c9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion malloc_playground.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ int main(int argc, char ** argv) {
char buffer[1000];
while (1) {
printf("> ");
gets(buffer);
fgets(buffer, sizeof(buffer), stdin);
char cmd[1000];
intptr_t arg1, arg2;
int num = sscanf(buffer, "%s %"SCNiPTR" %"SCNiPTR, cmd, &arg1, &arg2);
Expand Down

0 comments on commit 2859c9f

Please sign in to comment.