From b766d2b693dbfa4367166c9475e56b0aa3546aa2 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Mon, 15 Jul 2013 10:17:43 +0200 Subject: [PATCH] kmodloader: fix path printf handling Signed-off-by: Felix Fietkau --- kmodloader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kmodloader.c b/kmodloader.c index 0f7deec..049a868 100644 --- a/kmodloader.c +++ b/kmodloader.c @@ -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); -- 2.25.1