From 26cabd19d5e5b19f8c245581cabc9975c827bea9 Mon Sep 17 00:00:00 2001 From: "Tim J. Robbins" Date: Fri, 4 Oct 2002 16:45:25 +0000 Subject: [PATCH] Fix off-by-one error processing the line after an empty line when the -a option is not specified. Submitted by: schweikh MFC after: 1 week --- usr.bin/unexpand/unexpand.c | 1 + 1 file changed, 1 insertion(+) diff --git a/usr.bin/unexpand/unexpand.c b/usr.bin/unexpand/unexpand.c index 0d6b80c602ca..a98df5539879 100644 --- a/usr.bin/unexpand/unexpand.c +++ b/usr.bin/unexpand/unexpand.c @@ -176,6 +176,7 @@ tabify(void) } else if (ch == '\n') { putchar('\n'); doneline = ocol = dcol = 0; + continue; } else if (ch != ' ' || dcol > limit) { putchar(ch); if (isprint(ch))