diff options
author | Karel Zak <kzak@redhat.com> | 2015-02-06 10:31:03 +0100 |
---|---|---|
committer | Karel Zak <kzak@redhat.com> | 2015-02-06 10:31:03 +0100 |
commit | f93993b746236f7bf792924c175f8894a447c6aa (patch) | |
tree | 33b0af59b2c8fd04bd6db04969e02b72d0cc65c4 | |
parent | c603d076f89e02002ee1b025a739a2777edfa783 (diff) | |
download | util-linux-playground-f93993b746236f7bf792924c175f8894a447c6aa.tar.gz |
lscpu: fix compiler error [-Werror=format-security]
Signed-off-by: Karel Zak <kzak@redhat.com>
-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 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; |