Skip to content

Commit

Permalink
vfs_stdio: use correct return type (off_t) when calling lseek (potent…
Browse files Browse the repository at this point in the history
…ially fixing #3070)
  • Loading branch information
Oleksiy-Yakovenko committed May 3, 2024
1 parent b449e44 commit cbd5d9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vfs_stdio.c
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ stdio_getlength (DB_FILE *stream) {
return l;
#else
if (!f->have_size) {
int64_t size = lseek (f->stream, 0, SEEK_END);
off_t size = lseek (f->stream, 0, SEEK_END);
lseek (f->stream, f->offs, SEEK_SET);
#ifdef USE_BUFFERING
f->bufremaining = 0;
Expand Down

0 comments on commit cbd5d9b

Please sign in to comment.