aboutsummaryrefslogtreecommitdiff
path: root/src/recipe.c
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2024-09-20 08:45:20 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2024-09-20 13:11:45 -0400
commit0de2a305fc2187f62b3df36d7541e7f4fa254f61 (patch)
tree56381c78c4d78bf7ef2c4193f4725cb6ecc5f9e2 /src/recipe.c
parentd76321976cfe42bb03b5e7e48ac9f6d95d97b14a (diff)
downloadstasis-0de2a305fc2187f62b3df36d7541e7f4fa254f61.tar.gz
Fix string op warnings
* Fix unused-result warnings
Diffstat (limited to 'src/recipe.c')
-rw-r--r--src/recipe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/recipe.c b/src/recipe.c
index e51fde6..833908c 100644
--- a/src/recipe.c
+++ b/src/recipe.c
@@ -16,7 +16,7 @@ int recipe_clone(char *recipe_dir, char *url, char *gitref, char **result) {
return -1;
}
}
- strncpy(*result, destdir, PATH_MAX - 1);
+ strncpy(*result, destdir, PATH_MAX);
if (!access(destdir, F_OK)) {
if (!strcmp(destdir, "/")) {