diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-04-09 15:56:57 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-04-09 16:25:12 -0700 |
commit | c6b48ffeb65182bf5989df299c6a7fcccb3cb09a (patch) | |
tree | df5ffb91cf16fd5bfdfc7687293a0adfea4d74eb /atobm.c | |
parent | fa7241ac10bf9b47c3d20d557fdca0aa0a468484 (diff) |
atobm: accept single character lines
Fixes round-trip-test failure on hlines2
The previous behavior has been present since the initial checkin of the
code to the X Consortium monolith, but no explanation was given for why
a single-character line should be skipped.
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'atobm.c')
-rw-r--r-- | atobm.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -238,7 +238,7 @@ doit (FILE *fp, newline++; } - if (newline == cp + 1) continue; + if (newline == cp) continue; *newline = '\0'; len = strlen (cp); |