Skip to content
Permalink
Browse files
Fixed compiler warning on newer Linux systems.
  • Loading branch information
icculus committed Feb 1, 2010
1 parent a09a54d commit 5720b168ca636157230b96f387807d4fe288c351
Showing with 3 additions and 1 deletion.
  1. +3 −1 test/test_physfs.c
@@ -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);

0 comments on commit 5720b16

Please sign in to comment.