diff options
author | Karel Zak | 2015-02-06 10:31:03 +0100 |
---|---|---|
committer | Karel Zak | 2015-02-06 10:31:03 +0100 |
commit | f93993b746236f7bf792924c175f8894a447c6aa (patch) | |
tree | 33b0af59b2c8fd04bd6db04969e02b72d0cc65c4 /sys-utils/lscpu.c | |
parent | libfdisk: make code more readable (diff) | |
download | kernel-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.c | 2 |
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; |