From 0de2a305fc2187f62b3df36d7541e7f4fa254f61 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Fri, 20 Sep 2024 08:45:20 -0400 Subject: Fix string op warnings * Fix unused-result warnings --- src/recipe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/recipe.c') 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, "/")) { -- cgit