Browse Source

r9315@totoro: nickm | 2006-11-13 22:40:59 -0500
Fix a build warning on angela-sid


svn:r8949

Nick Mathewson 17 years ago
parent
commit
d6cc235eba
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/common/util.c

+ 1 - 1
src/common/util.c

@@ -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));