summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/io.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/io.c b/src/io.c
index 22f8719..9dcc784 100644
--- a/src/io.c
+++ b/src/io.c
@@ -1896,6 +1896,7 @@ ical_readline (FILE *fdi, char *buf, char *lstore, unsigned *ln)
if (*lstore != SPACE && *lstore != TAB)
break;
strncat (buf, lstore + 1, BUFSIZ);
+ buf[BUFSIZ - 1] = '\0';
(*ln)++;
}