aboutsummaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2006-11-14 03:41:05 +0000
committerNick Mathewson <nickm@torproject.org>2006-11-14 03:41:05 +0000
commitd6cc235eba9496a51873c74bcfad25946340d3be (patch)
tree805883c8fbc14a6e7b22ef86de4c5e2f94f015a3 /src/common
parent9243e5417704656dbfee91d2b6e06ae19f70aa24 (diff)
downloadtor-d6cc235eba9496a51873c74bcfad25946340d3be.tar.gz
tor-d6cc235eba9496a51873c74bcfad25946340d3be.zip
r9315@totoro: nickm | 2006-11-13 22:40:59 -0500
Fix a build warning on angela-sid svn:r8949
Diffstat (limited to 'src/common')
-rw-r--r--src/common/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/util.c b/src/common/util.c
index 15e08fa898..73df89267c 100644
--- a/src/common/util.c
+++ b/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));