diff --git a/src/librc/librc-depend.c b/src/librc/librc-depend.c index d02b02f35..b980a213f 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)