diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2013-05-18 16:01:26 -0700 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2013-05-18 16:01:26 -0700 |
| commit | 6678d2d0353578edbf4253e1aecef326b3ee8db6 (patch) | |
| tree | 9503789422123da0b845095a43ccfca051db6201 | |
| parent | bb59d6ec029f3fb6e6ad82fb531a7edd348601b8 (diff) | |
| parent | 0fc9064c59fef34d68b921d6eaae035d5d435a12 (diff) | |
| download | mruby-6678d2d0353578edbf4253e1aecef326b3ee8db6.tar.gz mruby-6678d2d0353578edbf4253e1aecef326b3ee8db6.zip | |
Merge pull request #1258 from luislavena/mrbc-dump-binary
mrbc: use binary mode on outfile
| -rw-r--r-- | tools/mrbc/mrbc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/mrbc/mrbc.c b/tools/mrbc/mrbc.c index 3bf6678f6..0a165b78a 100644 --- a/tools/mrbc/mrbc.c +++ b/tools/mrbc/mrbc.c @@ -282,7 +282,7 @@ main(int argc, char **argv) if (strcmp("-", args.outfile) == 0) { wfp = stdout; } - else if ((wfp = fopen(args.outfile, "w")) == NULL) { + else if ((wfp = fopen(args.outfile, "wb")) == NULL) { fprintf(stderr, "%s: cannot open output file:(%s)\n", args.prog, args.outfile); return EXIT_FAILURE; } |
