Skip to content

Commit

Permalink
MS DOS cares about "binary" mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
hackerb9 committed Jul 15, 2024
1 parent 3ee7e73 commit a45db1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion m100-jumps.lex
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ int main(int argc, char *argv[]) {

/* Second arg (if any) is output file name */
++argv, --argc;
yyout = (argc>0) ? fopen( argv[0], "w+" ) : stdout;
yyout = (argc>0) ? fopen( argv[0], "wb+" ) : stdout;
if (yyout == NULL) { perror(argv[0]); exit(1); }

while (yylex())
Expand Down

0 comments on commit a45db1a

Please sign in to comment.