lscpu: fix compiler error [-Werror=format-security]

Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
Karel Zak 2015-02-06 10:31:03 +01:00
parent c603d076f8
commit f93993b746
1 changed files with 1 additions and 1 deletions

View 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;