Skip to content

Commit

Permalink
ptexenc: fix a bug in input_line2() (#100)
Browse files Browse the repository at this point in the history
  • Loading branch information
t-tk committed May 10, 2020
1 parent 0a99f03 commit 0a54dbf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions source/texk/ptexenc/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2020-05-10 Hironori Kitagawa <[email protected]>

* ptexenc.c: Fix a bug of end of line in input_line2().
https://github.com/texjporg/tex-jp-build/issues/100

2020-04-10 Karl Berry <[email protected]>

* version.ac: now 1.3.9/dev since TL'19 is released.
Expand Down
2 changes: 1 addition & 1 deletion source/texk/ptexenc/ptexenc.c
Original file line number Diff line number Diff line change
Expand Up @@ -822,7 +822,7 @@ long input_line2(FILE *fp, unsigned char *buff, long pos,
}
}

buffer[last] = '\0';
if (i != EOF || first != last) buffer[last] = '\0';
if (i == EOF || i == '\n' || i == '\r') injis = false;
if (lastchar != NULL) *lastchar = i;

Expand Down

0 comments on commit 0a54dbf

Please sign in to comment.