From: Felix Fietkau Date: Mon, 15 Jul 2013 08:17:43 +0000 (+0200) Subject: kmodloader: fix path printf handling X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=b766d2b693dbfa4367166c9475e56b0aa3546aa2;p=oweals%2Fubox.git kmodloader: fix path printf handling Signed-off-by: Felix Fietkau --- 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);