lscpu: fix compiler error [-Werror=format-security]
Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
parent
c603d076f8
commit
f93993b746
|
@ -598,7 +598,7 @@ static int is_compatible(const char *path, const char *str)
|
||||||
{
|
{
|
||||||
FILE *fd;
|
FILE *fd;
|
||||||
|
|
||||||
fd = path_fopen("r", 0, path);
|
fd = path_fopen("r", 0, "%s", path);
|
||||||
if (fd) {
|
if (fd) {
|
||||||
char buf[256];
|
char buf[256];
|
||||||
size_t i, len;
|
size_t i, len;
|
||||||
|
|
Loading…
Reference in New Issue