[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] r15252: Malloc does not return size_t. (bug noticed by lodger.) (tor/trunk/src/or)
Author: nickm
Date: 2008-06-14 11:42:29 -0400 (Sat, 14 Jun 2008)
New Revision: 15252
Modified:
tor/trunk/src/or/config.c
Log:
Malloc does not return size_t. (bug noticed by lodger.)
Modified: tor/trunk/src/or/config.c
===================================================================
--- tor/trunk/src/or/config.c 2008-06-14 12:01:10 UTC (rev 15251)
+++ tor/trunk/src/or/config.c 2008-06-14 15:42:29 UTC (rev 15252)
@@ -1276,7 +1276,7 @@
#ifdef WIN32
if (!strcmp(actual_fname, "<default>")) {
const char *conf_root = get_windows_conf_root();
- size_t len = tor_malloc(strlen(conf_root)+16);
+ size_t len = strlen(conf_root)+16;
tor_free(actual_fname);
actual_fname = tor_malloc(len+1);
tor_snprintf(actual_fname, len, "%s\\geoip", conf_root);