From c6b48ffeb65182bf5989df299c6a7fcccb3cb09a Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Sat, 9 Apr 2022 15:56:57 -0700 Subject: 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 --- atobm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'atobm.c') 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); -- cgit v1.2.3