aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--calendar.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/calendar.c b/calendar.c
index 6f1756a3..a60d8ea2 100644
--- a/calendar.c
+++ b/calendar.c
@@ -51,7 +51,7 @@ int handle_dir(vcomponent* cal, char* path) {
DIR* dir = opendir(path);
/* Buffer for holding search path and filename */
- char buf[PATH_MAX];
+ char buf[PATH_MAX] = { [0 ... PATH_MAX - 1] = '\0' };
strcpy(buf, path);
int path_len = strlen(path) + 1;