aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2026-04-16 13:04:33 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2026-04-16 13:04:33 -0400
commitd17103f326bbf026f55a326629e41e69c21a78ad (patch)
tree1a2bd9c7e56f5b2d118321a151a2648158d13568 /src
parentf9bad6c9d5a5cbfb4dd9d45c55674a58c029c306 (diff)
downloadstasis-d17103f326bbf026f55a326629e41e69c21a78ad.tar.gz
Fix cmd buffer size to copysprintf-to-snprintf
Diffstat (limited to 'src')
-rw-r--r--src/cli/stasis_indexer/helpers.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cli/stasis_indexer/helpers.c b/src/cli/stasis_indexer/helpers.c
index 27608d3..2ecdc74 100644
--- a/src/cli/stasis_indexer/helpers.c
+++ b/src/cli/stasis_indexer/helpers.c
@@ -120,7 +120,7 @@ int pandoc_exec(const char *in_file, const char *out_file, const char *css_file,
// Converts a markdown file to html
char cmd[STASIS_BUFSIZ] = {0};
- strncpy(cmd, "pandoc ", sizeof(cmd));
+ strncpy(cmd, "pandoc ", sizeof(cmd) - 1);
strncat(cmd, pandoc_versioned_args, sizeof(cmd) - strlen(cmd) - 1);
if (css_file && strlen(css_file)) {
strncat(cmd, "--css ", sizeof(cmd) - strlen(cmd) - 1);