diff --git a/sourcepawn/compiler/msvc8/spcomp.vcproj b/sourcepawn/compiler/msvc8/spcomp.vcproj index 84416348..a2570592 100644 --- a/sourcepawn/compiler/msvc8/spcomp.vcproj +++ b/sourcepawn/compiler/msvc8/spcomp.vcproj @@ -116,7 +116,7 @@ /> handle; sp_file_hdr_t *pHdr; @@ -434,7 +433,8 @@ int main(int argc, char *argv[]) proper = (unsigned char *)pOrig->base + header_size; /* get initial size estimate */ - pHdr->disksize = (uint32_t)compressBound(pHdr->imagesize) * 2; + disksize = compressBound(pHdr->imagesize); + pHdr->disksize = (uint32_t)disksize; zcmp = (Bytef *)malloc(pHdr->disksize); if ((err=compress2(zcmp,