summaryrefslogtreecommitdiff
path: root/cmd/modutil/install.c
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/modutil/install.c')
-rw-r--r--cmd/modutil/install.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/modutil/install.c b/cmd/modutil/install.c
index 4862cbc35..91bcca928 100644
--- a/cmd/modutil/install.c
+++ b/cmd/modutil/install.c
@@ -812,7 +812,7 @@ rm_dash_r(char *path)
/* Recursively delete all entries in the directory */
while ((entry = PR_ReadDir(dir, PR_SKIP_BOTH)) != NULL) {
- sprintf(filename, "%s/%s", path, entry->name);
+ snprintf(filename, sizeof(filename), "%s/%s", path, entry->name);
if (rm_dash_r(filename)) {
PR_CloseDir(dir);
return -1;