Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixed compiler warning on newer Linux systems.
  • Loading branch information
icculus committed Feb 1, 2010
1 parent a09a54d commit 5720b16
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/test_physfs.c
Expand Up @@ -1116,7 +1116,9 @@ static void open_history_file(void)

do
{
fgets(buf, sizeof (buf), f);
if (fgets(buf, sizeof (buf), f) == NULL)
break;

if (buf[strlen(buf) - 1] == '\n')
buf[strlen(buf) - 1] = '\0';
add_history(buf);
Expand Down

0 comments on commit 5720b16

Please sign in to comment.