summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2022-04-09 15:56:57 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2022-04-09 16:25:12 -0700
commitc6b48ffeb65182bf5989df299c6a7fcccb3cb09a (patch)
treedf5ffb91cf16fd5bfdfc7687293a0adfea4d74eb
parentfa7241ac10bf9b47c3d20d557fdca0aa0a468484 (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>
-rw-r--r--atobm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/atobm.c b/atobm.c
index 44fdcda..90440ac 100644
--- a/atobm.c
+++ b/atobm.c
@@ -238,7 +238,7 @@ doit (FILE *fp,
newline++;
}
- if (newline == cp + 1) continue;
+ if (newline == cp) continue;
*newline = '\0';
len = strlen (cp);