1
0
mirror of https://github.com/simh/simh.git synced 2026-01-25 19:56:25 +00:00

SCP: Compiler suggested cleanup

This commit is contained in:
Mark Pizzolato
2017-04-10 10:47:42 -07:00
parent 2b30084a53
commit 6ff3eeac80
2 changed files with 2 additions and 2 deletions

View File

@@ -488,7 +488,7 @@ if (!fOut) {
st = sim_messagef (SCPE_ARG, "Can't open '%s' for output: %s\n", dest_file, strerror (errno));
goto Cleanup_Return;
}
buf = malloc (BUFSIZ);
buf = (char *)malloc (BUFSIZ);
while ((bytes = fread (buf, 1, BUFSIZ, fIn)))
fwrite (buf, 1, bytes, fOut);
Cleanup_Return: