Skip to content

Commit

Permalink
fix: error when using fseek on 32-bit system
Browse files Browse the repository at this point in the history
  • Loading branch information
rty813 authored Apr 26, 2024
1 parent 7751178 commit f9c82e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion handlers/rdiff_handler.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ static rs_result base_file_read_cb(void *fp, rs_long_t pos, size_t *len, void **
{
FILE *f = (FILE *)fp;

if (fseek(f, pos, SEEK_SET) != 0) {
if (fseeko64(f, pos, SEEK_SET) != 0) {
ERROR("Error seeking rdiff base file: %s", strerror(errno));
return RS_IO_ERROR;
}
Expand Down

0 comments on commit f9c82e9

Please sign in to comment.