From 7b7ae1d143a8804b3f70206de7e152c56e36def5 Mon Sep 17 00:00:00 2001 From: Sree Harsha Totakura Date: Wed, 22 May 2013 18:35:24 +0000 Subject: - fix scanf issues with plibc ignoring '.' before the last '-' --- src/testbed/testbed_api_hosts.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/testbed/testbed_api_hosts.c') diff --git a/src/testbed/testbed_api_hosts.c b/src/testbed/testbed_api_hosts.c index 8a66f172e..2593f5ff8 100644 --- a/src/testbed/testbed_api_hosts.c +++ b/src/testbed/testbed_api_hosts.c @@ -486,13 +486,13 @@ GNUNET_TESTBED_hosts_load_from_file (const char *filename, { data[offset] = '\0'; ret = - SSCANF (buf, "%255[a-zA-Z0-9_]@%255[a-zA-Z0-9.-]:%5hd", username, + SSCANF (buf, "%255[a-zA-Z0-9_]@%255[.a-zA-Z0-9-]:%5hd", username, hostname, &port); if (3 == ret) { - GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, - "Successfully read host %s, port %d and user %s from file\n", - hostname, port, username); + LOG (GNUNET_ERROR_TYPE_DEBUG, + "Successfully read host %s, port %d and user %s from file\n", + hostname, port, username); /* We store hosts in a static list; hence we only require the starting * host pointer in that list to access the newly created list of hosts */ if (NULL == starting_host) -- cgit v1.2.3