From: Karel Zak Date: Fri, 6 Feb 2015 09:31:03 +0000 (+0100) Subject: lscpu: fix compiler error [-Werror=format-security] X-Git-Tag: v2.26~58 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f93993b746236f7bf792924c175f8894a447c6aa;p=thirdparty%2Futil-linux.git lscpu: fix compiler error [-Werror=format-security] Signed-off-by: Karel Zak --- diff --git a/sys-utils/lscpu.c b/sys-utils/lscpu.c index 7f2568d638..2a616e2ad6 100644 --- a/sys-utils/lscpu.c +++ b/sys-utils/lscpu.c @@ -598,7 +598,7 @@ static int is_compatible(const char *path, const char *str) { FILE *fd; - fd = path_fopen("r", 0, path); + fd = path_fopen("r", 0, "%s", path); if (fd) { char buf[256]; size_t i, len;