aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/unexpand/unexpand.c
diff options
context:
space:
mode:
authorTim J. Robbins <tjr@FreeBSD.org>2002-10-04 16:45:25 +0000
committerTim J. Robbins <tjr@FreeBSD.org>2002-10-04 16:45:25 +0000
commit26cabd19d5e5b19f8c245581cabc9975c827bea9 (patch)
tree555923460f7b24effc7bff00299bbeaad693f220 /usr.bin/unexpand/unexpand.c
parentb0eca2c865b0e6769037568815608dfaffc16171 (diff)
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
Notes
Notes: svn path=/head/; revision=104466
Diffstat (limited to 'usr.bin/unexpand/unexpand.c')
-rw-r--r--usr.bin/unexpand/unexpand.c1
1 files changed, 1 insertions, 0 deletions
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))