aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils.c b/utils.c
index 58478c7..1b2013a 100644
--- a/utils.c
+++ b/utils.c
@@ -519,7 +519,7 @@ static void wrap_print __P1 (char *,s)
ansibug = 1;
#endif
- while (l >= cols_1 - col0) {
+ while (l >= cols_1 - col0 && *s) {
p = buf; m = 0; state = NORM;
lp = ls = NULL;