Don't printf a string directly but use %s instead
Bug #581725. Signed-off-by: Benoît Dejean <benoit@placenet.org>
This commit is contained in:
committed by
Benoît Dejean
parent
933683da39
commit
f41ab3beed
@@ -140,7 +140,7 @@ static void linux_2_6_0(glibtop *server, glibtop_fsusage *buf, const char *path)
|
||||
|
||||
get_sys_path(server, device, &filename, &format);
|
||||
|
||||
ret = try_file_to_buffer(buffer, sizeof buffer, filename);
|
||||
ret = try_file_to_buffer(buffer, sizeof buffer, "%s", filename);
|
||||
|
||||
if (ret < 0) goto out;
|
||||
|
||||
|
Reference in New Issue
Block a user