mirror of https://github.com/BOINC/boinc.git
Fix compiler warning
svn path=/trunk/boinc/; revision=18111
This commit is contained in:
parent
38d05f9f1b
commit
1eb1330ed4
|
@ -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
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue