[or-cvs] r8949: Fix a build warning on angela-sid (in tor/trunk: . src/common)
nickm at seul.org
nickm at seul.org
Tue Nov 14 03:41:05 UTC 2006
Author: nickm
Date: 2006-11-13 22:41:05 -0500 (Mon, 13 Nov 2006)
New Revision: 8949
Modified:
tor/trunk/
tor/trunk/src/common/util.c
Log:
r9315 at totoro: nickm | 2006-11-13 22:40:59 -0500
Fix a build warning on angela-sid
Property changes on: tor/trunk
___________________________________________________________________
svk:merge ticket from /tor/trunk [r9315] on 96637b51-b116-0410-a10e-9941ebb49b64
Modified: tor/trunk/src/common/util.c
===================================================================
--- tor/trunk/src/common/util.c 2006-11-14 01:07:52 UTC (rev 8948)
+++ tor/trunk/src/common/util.c 2006-11-14 03:41:05 UTC (rev 8949)
@@ -1324,7 +1324,7 @@
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));
More information about the tor-commits
mailing list