summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2013-11-27 17:11:46 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2013-11-27 17:11:46 +0100
commit5fa41d9e9b51ebc728aaecac537980163d9228e6 (patch)
treee5a79d27a97997168994ebdc9d7bc9f7da218521
parent867d4408bd8cd8e3a752ab88c4157e5a0a8f72dc (diff)
downloadeo_tokenizer-5fa41d9e9b51ebc728aaecac537980163d9228e6.zip
eo_tokenizer-5fa41d9e9b51ebc728aaecac537980163d9228e6.tar.gz
use input file in binary mode
-rw-r--r--eo_tokenizer.rl2
1 files changed, 1 insertions, 1 deletions
diff --git a/eo_tokenizer.rl b/eo_tokenizer.rl
index b995b13..a80dfc5 100644
--- a/eo_tokenizer.rl
+++ b/eo_tokenizer.rl
@@ -432,7 +432,7 @@ eo_tokenizer_walk(Eo_Tokenizer *toknz, const char *source)
int have = 0;
int offset = 0;
- stream = fopen(toknz->source, "r");
+ stream = fopen(toknz->source, "rb");
if (!stream)
{
ERR("unable to read in %s", toknz->source);