From 912aa3774e2889070b28ecd94df11ac228666457 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Wed, 29 Aug 2018 10:24:23 +0100 Subject: remove use of strcpy --- utils/filepath.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'utils/filepath.c') diff --git a/utils/filepath.c b/utils/filepath.c index ee5f107c9..9c1e7667b 100644 --- a/utils/filepath.c +++ b/utils/filepath.c @@ -165,7 +165,7 @@ filepath_sfinddef(char **respathv, snprintf(t, PATH_MAX, "%s/%s", def, filename); } if (realpath(t, ret) == NULL) { - strcpy(ret, t); + strncpy(ret, t, PATH_MAX); } } -- cgit v1.2.3