From 29581f78bb43a7e8828ebd6e4031a84d374b797f Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Fri, 5 Aug 2011 21:16:46 +0000 Subject: [PATCH] LRN: 0009-Fix-.exe-extension-in-topology-string.patch --- src/testing/test_testing_topology.c | 4 ++++ 1 file changed, 4 insertions(+) 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 -- 2.25.1