diff options
author | Nick Mathewson <nickm@torproject.org> | 2008-06-14 15:42:29 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2008-06-14 15:42:29 +0000 |
commit | 97c06691b9f4a30db21fcba41c17b95e268b24a0 (patch) | |
tree | 91f0ffac0f0976cee9235f33fa2d13973bdf5955 /src/or/config.c | |
parent | d2b4a081135bba852057696b9bcacb7de0d0fa18 (diff) | |
download | tor-97c06691b9f4a30db21fcba41c17b95e268b24a0.tar.gz tor-97c06691b9f4a30db21fcba41c17b95e268b24a0.zip |
Malloc does not return size_t. (bug noticed by lodger.)
svn:r15252
Diffstat (limited to 'src/or/config.c')
-rw-r--r-- | src/or/config.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/config.c b/src/or/config.c index 12cfe18834..6072c808a4 100644 --- a/src/or/config.c +++ b/src/or/config.c @@ -1276,7 +1276,7 @@ options_act(or_options_t *old_options) #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); |