diff --git a/pkgs/os-specific/linux/module-init-tools/module-dir.patch b/pkgs/os-specific/linux/module-init-tools/module-dir.patch index 7166e215d552..0bf049f77f7f 100644 --- a/pkgs/os-specific/linux/module-init-tools/module-dir.patch +++ b/pkgs/os-specific/linux/module-init-tools/module-dir.patch @@ -146,7 +146,7 @@ diff -rc module-init-tools-3.2.2/modprobe.c module-init-tools-3.2.2.new/modprobe ! module_dir = "/lib/modules"; ! } ! -! dirname = NOFAIL(malloc(strlen(buf.release) + sizeof(module_dir) + 1)); +! dirname = NOFAIL(malloc(strlen(buf.release) + strlen(module_dir) + 1)); ! sprintf(dirname, "%s/%s", module_dir, buf.release); aliasfilename = NOFAIL(malloc(strlen(dirname) + sizeof("/modules.alias")));