X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=scripts%2Fxsparse.c;h=7fd31d9589a42ab2d4a9506ab50eb86830c9923a;hb=46b07a52f9dcd3f0a298dfaf85fc0cf502d019dc;hp=99bb82a05ae805355d583b8d17270a534daac20d;hpb=868ee7402884604c679ee13f6fe9772e05ba3ddd;p=chaz%2Ftar diff --git a/scripts/xsparse.c b/scripts/xsparse.c index 99bb82a..7fd31d9 100644 --- a/scripts/xsparse.c +++ b/scripts/xsparse.c @@ -7,7 +7,7 @@ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2, or (at your option) any later + Free Software Foundation; either version 3, or (at your option) any later version. This program is distributed in the hope that it will be useful, but @@ -22,6 +22,7 @@ #include #include #include +#include #include #include #include @@ -279,8 +280,8 @@ read_map (FILE *ifp) sparse_map[i].numbytes = string_to_size (nbuf, NULL); } - fseek (ifp, ((ftell (ifp) + BLOCKSIZE - 1) / BLOCKSIZE) * BLOCKSIZE, - SEEK_SET); + fseeko (ifp, ((ftell (ifp) + BLOCKSIZE - 1) / BLOCKSIZE) * BLOCKSIZE, + SEEK_SET); } void