]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
changed to use LONG_SEEK
authorPaul Cruz <paulcruz74@fb.com>
Tue, 20 Jun 2017 20:44:05 +0000 (13:44 -0700)
committerPaul Cruz <paulcruz74@fb.com>
Tue, 20 Jun 2017 20:44:05 +0000 (13:44 -0700)
programs/fileio.c

index 93ec3f181a75f0ff732b5778175cec0cd391c715..37ec7f8150acfec88b63e1d24c4b5e7417ae5a0c 100644 (file)
@@ -982,7 +982,7 @@ static int getFileInfo(fileInfo_t* info, const char* inFileName){
                 }
                 {
                     U32 const frameSize = MEM_readLE32(frameSizeBuffer);
-                    int const ret = fseek(srcFile, (long)frameSize, SEEK_CUR);
+                    int const ret = LONG_SEEK(srcFile, frameSize, SEEK_CUR);
                     if (ret != 0) {
                         DISPLAY("Error: could not find end of skippable frame\n");
                         detectError = 1;