X-Git-Url: http://j8takagi.net/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fexec.c;h=a447aa76a1328ff58899f3c0c11eedaef5697ebc;hb=refs%2Ftags%2Fv0.3;hp=a6c7edcd830e280ef8a64938d7978e6c00363245;hpb=03e322484530da78d796401413d9f5f493d95345;p=YACASL2.git diff --git a/src/exec.c b/src/exec.c index a6c7edc..a447aa7 100644 --- a/src/exec.c +++ b/src/exec.c @@ -237,7 +237,7 @@ bool loadassemble(const char *file) bool stat = true; assert(file != NULL); - if((fp = fopen(file, "r")) == NULL) { + if((fp = fopen(file, "rb")) == NULL) { perror(file); return false; }