Move to fread(...) instead for launch parameters

This commit is contained in:
Amos 2021-06-16 17:03:02 -07:00
parent cb0e72fc0a
commit 6ad6a230ea

View File

@ -45,7 +45,7 @@ bool LaunchR5Apex()
// Load command line arguments from a file on the disk. // Load command line arguments from a file on the disk.
if (sLaunchParams) if (sLaunchParams)
{ {
while (fgets(sArgumentBuffer, sizeof(sArgumentBuffer), sLaunchParams) != NULL) while (fread(sArgumentBuffer, sizeof(sArgumentBuffer), 1, sLaunchParams) != NULL)
{ {
fclose(sLaunchParams); fclose(sLaunchParams);
} }