]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
lscpu: fix compiler error [-Werror=format-security]
authorKarel Zak <kzak@redhat.com>
Fri, 6 Feb 2015 09:31:03 +0000 (10:31 +0100)
committerKarel Zak <kzak@redhat.com>
Fri, 6 Feb 2015 09:31:03 +0000 (10:31 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
sys-utils/lscpu.c

index 7f2568d638086defd9b1855ac66f6c26e5cb6e82..2a616e2ad63c513af30f548f18c88aa299db893e 100644 (file)
@@ -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;