diff options
Diffstat (limited to 'debianutils/run_parts.c')
-rw-r--r-- | debianutils/run_parts.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/debianutils/run_parts.c b/debianutils/run_parts.c index 953ff67..cb5f48f 100644 --- a/debianutils/run_parts.c +++ b/debianutils/run_parts.c @@ -90,7 +90,7 @@ static int FAST_FUNC act(const char *file, struct stat *statbuf, void *args UNUS return SKIP; } - names = xrealloc(names, (cur + 2) * sizeof(names[0])); + names = xrealloc_vector(names, 4, cur); names[cur++] = xstrdup(file); names[cur] = NULL; |