diff options
author | tjr <tjr@FreeBSD.org> | 2002-10-04 16:45:25 +0000 |
---|---|---|
committer | tjr <tjr@FreeBSD.org> | 2002-10-04 16:45:25 +0000 |
commit | d2ae103f1697cf267c850db96c93369027722a2e (patch) | |
tree | 555923460f7b24effc7bff00299bbeaad693f220 /usr.bin/unexpand | |
parent | d4a97d92cd08e3c2885be6bc40d00a9bd0ca9c43 (diff) | |
download | FreeBSD-src-d2ae103f1697cf267c850db96c93369027722a2e.zip FreeBSD-src-d2ae103f1697cf267c850db96c93369027722a2e.tar.gz |
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
Diffstat (limited to 'usr.bin/unexpand')
-rw-r--r-- | usr.bin/unexpand/unexpand.c | 1 |
1 files changed, 1 insertions, 0 deletions
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)) |