aboutsummaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2026-06-02 13:06:18 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2026-06-02 13:06:18 -0400
commit17f2b0e475ee66133a0a81124b239842cf5a712f (patch)
treef0ae900e64f67f613ae22fdae599988206542d01 /src/lib
parent323c600e9884dbd8f5997c2a1d57d8efa180a9be (diff)
downloadstasis-17f2b0e475ee66133a0a81124b239842cf5a712f.tar.gz
Replace string functions
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/core/recipe.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib/core/recipe.c b/src/lib/core/recipe.c
index 0ee1ef8..8cc8e21 100644
--- a/src/lib/core/recipe.c
+++ b/src/lib/core/recipe.c
@@ -16,8 +16,7 @@ int recipe_clone(char *recipe_dir, char *url, char *gitref, char **result) {
return -1;
}
}
- strncpy(*result, destdir, PATH_MAX - 1);
- (*result)[PATH_MAX - 1] = '\0';
+ safe_strncpy(*result, destdir, PATH_MAX);
if (!access(destdir, F_OK)) {
if (!strcmp(destdir, "/")) {