Fix some warnings

This commit is contained in:
Bill Hoffman 2009-11-08 10:34:12 -05:00
parent aae8dca797
commit f5fe20dc12
1 changed files with 2 additions and 2 deletions

View File

@ -1819,10 +1819,10 @@ bool cmSystemTools::CreateTar(const char* outFileName,
return false;
}
char buff[16384];
int len = fread(buff, 1, sizeof(buff), file);
size_t len = fread(buff, 1, sizeof(buff), file);
while (len > 0)
{
int wlen = archive_write_data(a, buff, len);
size_t wlen = archive_write_data(a, buff, len);
if(wlen != len)
{
cmOStringStream error;