From d710d7130fd1a74b7e3c2cdcac5058ffde17b405 Mon Sep 17 00:00:00 2001 From: negativeExponent Date: Sun, 2 May 2021 04:48:10 +0800 Subject: [PATCH] Fix fgets param --- frontend/libretro.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/libretro.c b/frontend/libretro.c index 395bc13e..e9567de6 100644 --- a/frontend/libretro.c +++ b/frontend/libretro.c @@ -1116,7 +1116,7 @@ static bool read_m3u(const char *file) if (!fp) return false; - while (fgets(fp, line, sizeof(line)) && disk_count < sizeof(disks) / sizeof(disks[0])) + while (fgets(line, sizeof(line), fp) && disk_count < sizeof(disks) / sizeof(disks[0])) { if (line[0] == '#') continue; -- 2.39.5