kmodloader: fix path printf handling
authorFelix Fietkau <nbd@openwrt.org>
Mon, 15 Jul 2013 08:17:43 +0000 (10:17 +0200)
committerFelix Fietkau <nbd@openwrt.org>
Mon, 15 Jul 2013 08:17:43 +0000 (10:17 +0200)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
kmodloader.c

index 0f7deec267bb0a749ecb1e536d2ea0835ff440be..049a868dca7ca6d5603dd10b33ae42f27eb106ff 100644 (file)
@@ -578,7 +578,7 @@ static int main_depmod(int argc, char **argv)
 
        uname(&ver);
        path = alloca(sizeof(DEF_MOD_PATH "*.ko") + strlen(ver.release) + 1);
-       snprintf(path, sizeof(path), DEF_MOD_PATH "*.ko", ver.release);
+       sprintf(path, DEF_MOD_PATH "*.ko", ver.release);
 
        scan_module_folder(path);