r17839@tombo: nickm | 2008-08-21 22:14:36 -0400

Fix bogus pointer use (and bug 806) on win32.


svn:r16617
This commit is contained in:
Nick Mathewson
2008-08-22 02:14:45 +00:00
parent 5ec2950ce0
commit 772a824d56
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -1265,7 +1265,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);