From 1953eab2c64056da1da98d71a38211ff269b6ed1 Mon Sep 17 00:00:00 2001 From: Syoyo Fujita Date: Fri, 6 Apr 2012 23:30:12 +0900 Subject: [PATCH] Open file with binary mode, since the behavor of ftell()/fseel() will be undefined in windows platform. --- lfpsplitter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lfpsplitter.c b/lfpsplitter.c index f485079..a625830 100644 --- a/lfpsplitter.c +++ b/lfpsplitter.c @@ -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; }