aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2026-04-24 23:26:17 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2026-04-24 23:26:49 -0400
commitf1a92821c3019f80357331d087b8ca86745857f9 (patch)
treec23c41ef2215760c84365d54fd89a6e54e18102b /src
parent51b01cdd30aafb0846263c60334850e0f82118e6 (diff)
downloadstasis-f1a92821c3019f80357331d087b8ca86745857f9.tar.gz
Fix NUL termination in double pointer
Diffstat (limited to 'src')
-rw-r--r--src/lib/core/recipe.c2
-rw-r--r--src/lib/core/utils.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/core/recipe.c b/src/lib/core/recipe.c
index 72aa6a3..e5769bb 100644
--- a/src/lib/core/recipe.c
+++ b/src/lib/core/recipe.c
@@ -17,7 +17,7 @@ int recipe_clone(char *recipe_dir, char *url, char *gitref, char **result) {
}
}
strncpy(*result, destdir, PATH_MAX - 1);
- *result[PATH_MAX - 1] = '\0';
+ (*result)[PATH_MAX - 1] = '\0';
if (!access(destdir, F_OK)) {
if (!strcmp(destdir, "/")) {
diff --git a/src/lib/core/utils.c b/src/lib/core/utils.c
index b528add..b8049a4 100644
--- a/src/lib/core/utils.c
+++ b/src/lib/core/utils.c
@@ -729,7 +729,7 @@ int fix_tox_conf(const char *filename, char **result, size_t maxlen) {
// Store path to modified config
strncpy(*result, tempfile, maxlen - 1);
- *result[maxlen - 1] = '\0';
+ (*result)[maxlen - 1] = '\0';
guard_free(tempfile);
ini_free(&toxini);