summaryrefslogtreecommitdiffstats
path: root/src/day.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/day.c')
-rw-r--r--src/day.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/day.c b/src/day.c
index 10ecc33..4c73f43 100644
--- a/src/day.c
+++ b/src/day.c
@@ -354,6 +354,9 @@ display_item (int incolor, char *msg, int recur, int note, int len, int y,
int ch_recur, ch_note;
char buf[len];
+ if (len <= 0)
+ return;
+
win = apad.ptrwin;
ch_recur = (recur) ? '*' : ' ';
ch_note = (note) ? '>' : ' ';