From 8cf077ae37f8b00e67b22e51c9085f0cdd293e70 Mon Sep 17 00:00:00 2001 From: "Anna (navi) Figueiredo Gomes" Date: Wed, 8 Mar 2023 10:13:02 -0300 Subject: [PATCH] Remove unnecessary sizeof(char) in array Signed-off-by: Anna (navi) Figueiredo Gomes --- src/librc/librc-depend.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/librc/librc-depend.c b/src/librc/librc-depend.c index f206a23fa..84368b119 100644 --- a/src/librc/librc-depend.c +++ b/src/librc/librc-depend.c @@ -704,7 +704,7 @@ rc_deptree_update_needed(time_t *newest, char *file) time_t mtime; /* Create base directories if needed */ - char depdir[sizeof(char) * PATH_MAX]; + char depdir[PATH_MAX]; for (i = 0; depdirs[i]; i++) { snprintf(depdir, PATH_MAX, "%s/%s", rc_svcdir_get(), depdirs[i]); if (mkdir(depdir, 0755) != 0 && errno != EEXIST)