summaryrefslogtreecommitdiffstats
path: root/sys-utils/lscpu.c
diff options
context:
space:
mode:
authorKarel Zak2015-02-06 10:31:03 +0100
committerKarel Zak2015-02-06 10:31:03 +0100
commitf93993b746236f7bf792924c175f8894a447c6aa (patch)
tree33b0af59b2c8fd04bd6db04969e02b72d0cc65c4 /sys-utils/lscpu.c
parentlibfdisk: make code more readable (diff)
downloadkernel-qcow2-util-linux-f93993b746236f7bf792924c175f8894a447c6aa.tar.gz
kernel-qcow2-util-linux-f93993b746236f7bf792924c175f8894a447c6aa.tar.xz
kernel-qcow2-util-linux-f93993b746236f7bf792924c175f8894a447c6aa.zip
lscpu: fix compiler error [-Werror=format-security]
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'sys-utils/lscpu.c')
-rw-r--r--sys-utils/lscpu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys-utils/lscpu.c b/sys-utils/lscpu.c
index 7f2568d63..2a616e2ad 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;