From: negativeExponent Date: Sat, 1 May 2021 20:48:10 +0000 (+0800) Subject: Fix fgets param X-Git-Tag: r24l~582^2 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d710d7130fd1a74b7e3c2cdcac5058ffde17b405;p=pcsx_rearmed.git Fix fgets param --- 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;