From: Christian Grothoff Date: Fri, 5 Aug 2011 21:16:46 +0000 (+0000) Subject: LRN: 0009-Fix-.exe-extension-in-topology-string.patch X-Git-Tag: initial-import-from-subversion-38251~17444 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=29581f78bb43a7e8828ebd6e4031a84d374b797f;p=oweals%2Fgnunet.git LRN: 0009-Fix-.exe-extension-in-topology-string.patch --- diff --git a/src/testing/test_testing_topology.c b/src/testing/test_testing_topology.c index fd6e1847e..426e9a223 100644 --- a/src/testing/test_testing_topology.c +++ b/src/testing/test_testing_topology.c @@ -1250,6 +1250,9 @@ main (int argc, char *argv[]) topology_string = strstr (topology_string, "_"); GNUNET_assert (topology_string != NULL); topology_string++; + topology_string = GNUNET_strdup (topology_string); + if (strstr (topology_string, ".exe")) + topology_string[strstr (topology_string, ".exe") - topology_string] = 0; GNUNET_asprintf (&our_binary_name, "test-testing-topology_%s", topology_string); @@ -1263,6 +1266,7 @@ main (int argc, char *argv[]) #endif NULL); ret = check (); + GNUNET_free (topology_string); /** * Need to remove base directory, subdirectories taken care