Skip to content

Commit

Permalink
Open file with binary mode, since the behavor of ftell()/fseel() will…
Browse files Browse the repository at this point in the history
… be undefined in windows platform.
  • Loading branch information
syoyo committed Apr 6, 2012
1 parent cadc6ed commit 1953eab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lfpsplitter.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ static lfp_file_p lfp_create(const char *filename)
return NULL;
}

if (!(fp = fopen(filename, "r"))) {
if (!(fp = fopen(filename, "rb"))) {
return NULL;
}

Expand Down

0 comments on commit 1953eab

Please sign in to comment.