Arguments file needs one additional null argument to finish the arguments.

This commit is contained in:
Ryan Houdek committed 2021-05-11 18:12:16 -07:00
1 parent fe77c3ef06
commit 490d7e57d7
1 file changed
+4
@@ -645,6 +645,10 @@ namespace FEX::EmulatedFile {
// Finish off with a null terminator
fwrite("\0", sizeof(uint8_t), 1, fp);
}
// One additional null terminator to finish the list
fwrite("\0", sizeof(uint8_t), 1, fp);
fseek(fp, 0, SEEK_SET);
int32_t f = fileno(fp);
return f;