From d2ae103f1697cf267c850db96c93369027722a2e Mon Sep 17 00:00:00 2001 From: tjr Date: Fri, 4 Oct 2002 16:45:25 +0000 Subject: 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(+) (limited to 'usr.bin/unexpand/unexpand.c') diff --git a/usr.bin/unexpand/unexpand.c b/usr.bin/unexpand/unexpand.c index 0d6b80c..a98df55 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)) -- cgit v1.1