From d6cc235eba9496a51873c74bcfad25946340d3be Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Tue, 14 Nov 2006 03:41:05 +0000 Subject: r9315@totoro: nickm | 2006-11-13 22:40:59 -0500 Fix a build warning on angela-sid svn:r8949 --- src/common/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/common') 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)); -- cgit v1.2.3-54-g00ecf