Skip to content

Commit

Permalink
fix a crash in iosim.
Browse files Browse the repository at this point in the history
  • Loading branch information
rainwoodman committed Jun 29, 2020
1 parent cc0ca59 commit b8ec1f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bigfile.c
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ _freadall_posix(BigFileStream fp, char ** buffer, char ** error)
return 0;
}
fseek(fp, 0, SEEK_SET);
if(size != fread(buffer, 1, size, fp)) {
if(size != fread(*buffer, 1, size, fp)) {
*error = _strdup(strerror(errno));
free(*buffer);
*buffer = NULL;
Expand Down

0 comments on commit b8ec1f5

Please sign in to comment.