diff options
author | Erik K <erikk@previousplan.org> | 2022-05-26 16:31:27 +0000 |
---|---|---|
committer | Erik K <erikk@previousplan.org> | 2022-05-26 16:31:27 +0000 |
commit | 61d75021c8a1180d2b591e70c783bd2eb21188bd (patch) | |
tree | e5401f7c66da4b41eb1bc7f01a8e98a38f8ceae8 /sm.c | |
parent | 9643e3cb444ee26088be4636ba2b753ac0166156 (diff) |
Diffstat (limited to 'sm.c')
-rw-r--r-- | sm.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -339,6 +339,7 @@ edit(const char *filename) return 0; } snprintf(path, sizeof(path), "%s/%s", kcontentdir, filename); + mkparentdirs(path); switch ((pid = fork())) { case -1: fprintf(stderr, "fork: %s\n", strerror(errno)); @@ -362,6 +363,7 @@ list(const char *filename) plugstats[0] = '['; plugstats[NPLUGINS+1] = ']'; + plugstats[NPLUGINS+2] = '\0'; if (filename) { snprintf(path, sizeof(path), "%s/%s", kcontentdir, filename); cat(path, stdout); |