r9315@totoro: nickm | 2006-11-13 22:40:59 -0500

Fix a build warning on angela-sid


svn:r8949
This commit is contained in:
Nick Mathewson
2006-11-14 03:41:05 +00:00
parent 9243e54177
commit d6cc235eba
+1 -1
View File
@@ -1324,7 +1324,7 @@ read_file_to_str(const char *filename, int bin, size_t *size_out)
return NULL;
}
if (statbuf.st_size+1 > SIZE_T_MAX)
if ((uint64_t)(statbuf.st_size)+1 > SIZE_T_MAX)
return NULL;
string = tor_malloc((size_t)(statbuf.st_size+1));