diff options
Diffstat (limited to 'modutils/modprobe-small.c')
-rw-r--r-- | modutils/modprobe-small.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/modutils/modprobe-small.c b/modutils/modprobe-small.c index e82ee4c..4f07353 100644 --- a/modutils/modprobe-small.c +++ b/modutils/modprobe-small.c @@ -317,9 +317,7 @@ static FAST_FUNC int fileAction(const char *pathname, } cur = module_count++; - if (!(cur & 0xfff)) { - modinfo = xrealloc(modinfo, sizeof(modinfo[0]) * (cur + 0x1001)); - } + modinfo = xrealloc_vector(modinfo, 12, cur); modinfo[cur].pathname = xstrdup(pathname); modinfo[cur].desc = NULL; modinfo[cur+1].pathname = NULL; |