X-Git-Url: http://sjero.net/git/?a=blobdiff_plain;f=src%2Futils.c;h=9773249687159834e03293d947e9b3fd7a8f7f26;hb=cb2cc3abf8bbf7fa135bf4a6a96a748b89cef2be;hp=33d0eb563e651cb80589d863bca59f29ab973c14;hpb=4b3e1632dbe3ba8f17a24c422f9faeeba8657aa5;p=wget diff --git a/src/utils.c b/src/utils.c index 33d0eb56..97732496 100644 --- a/src/utils.c +++ b/src/utils.c @@ -917,7 +917,7 @@ read_file (const char *file) #ifdef HAVE_MMAP { - struct_stat buf; + struct_fstat buf; if (fstat (fd, &buf) < 0) goto mmap_lose; fm->length = buf.st_size;