Fix fnread() string fmt, no format args.

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg committed 2022-04-17 11:30:43 +02:00
1 parent e7516f2b63
commit f33261af6b
1 file changed
+1 -1
+1 -1
View File
@@ -224,7 +224,7 @@ int fngetint(char *path, int *val)
{
char buf[64];
if (fnread(buf, sizeof(buf), path) <= 0)
if (fnread(buf, sizeof(buf), "%s", path) <= 0)
return -1;
errno = 0;