Skip to content

Commit

Permalink
Fix warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Pascal MALAISE committed Jun 14, 2014
1 parent 3517d2d commit eec7409
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mlist/mlist.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ static size_t put_stats (int put_stats) {
perror("scanf");
exit(1);
}
if (strncmp (buffer, crit, sizeof(crit)) == 0) break;
if (strncmp (buffer, crit, strlen(crit) + 1) == 0) break;
}
fclose (file);
vmsize = strtol (vmtext, NULL, 10);
Expand Down

0 comments on commit eec7409

Please sign in to comment.