summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--usr.bin/more/output.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/more/output.c b/usr.bin/more/output.c
index c721f4e..2205f1f 100644
--- a/usr.bin/more/output.c
+++ b/usr.bin/more/output.c
@@ -226,7 +226,7 @@ error(s)
}
lower_left();
- if (strlen(s) + sizeof(return_to_continue) +
+ if ((s==NULL)?0:(strlen(s)) + sizeof(return_to_continue) +
so_width + se_width + 1 > sc_width)
/*
* Printing the message has probably scrolled the screen.
OpenPOWER on IntegriCloud