Skip to content

Commit c2cc02e

Browse files
committed
Fix Windows library scanner to support files larger than 2GB
1 parent 0831b55 commit c2cc02e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/filent.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ file_archscan(
256256
struct ar_hdr ar_hdr;
257257
char *string_table = 0;
258258
char buf[ MAXJPATH ];
259-
long offset;
259+
__int64 offset;
260260
int fd;
261261

262262
if( ( fd = open( archive, O_RDONLY | O_BINARY, 0 ) ) < 0 )
@@ -348,7 +348,7 @@ file_archscan(
348348
#endif
349349

350350
offset += SARHDR + lar_size;
351-
lseek( fd, offset, 0 );
351+
_lseeki64( fd, offset, 0 );
352352
}
353353

354354
#ifdef OPT_FIX_NT_ARSCAN_LEAK

0 commit comments

Comments
 (0)