Fix compiler warning

svn path=/trunk/boinc/; revision=18111
This commit is contained in:
Charlie Fenton 2009-05-15 08:13:56 +00:00
parent 38d05f9f1b
commit 1eb1330ed4
2 changed files with 7 additions and 1 deletions

View File

@ -4543,3 +4543,9 @@ David 14 May 2009
translation.inc translation.inc
ops/ ops/
build_po.php build_po.php
Charlie 15 May 2009
Fix compiler warning.
lib/
util.cpp

View File

@ -328,7 +328,7 @@ int read_file_malloc(const char* path, char*& buf, size_t max_len, bool tail) {
size = max_len; size = max_len;
} }
#endif #endif
size_t isize = size; size_t isize = (size_t)size;
buf = (char*)malloc(isize+1); buf = (char*)malloc(isize+1);
size_t n = fread(buf, 1, isize, f); size_t n = fread(buf, 1, isize, f);
buf[n] = 0; buf[n] = 0;