aboutsummaryrefslogtreecommitdiff
path: root/src/testbed/testbed_api_hosts.c
diff options
context:
space:
mode:
authorSree Harsha Totakura <totakura@in.tum.de>2013-05-22 18:35:24 +0000
committerSree Harsha Totakura <totakura@in.tum.de>2013-05-22 18:35:24 +0000
commit7b7ae1d143a8804b3f70206de7e152c56e36def5 (patch)
tree6977aa8c248a147522cdc40278575a4c8aa2d546 /src/testbed/testbed_api_hosts.c
parent99ed87df59a6e6b3f93e706a42cb34a2cdb07fbb (diff)
downloadgnunet-7b7ae1d143a8804b3f70206de7e152c56e36def5.tar.gz
gnunet-7b7ae1d143a8804b3f70206de7e152c56e36def5.zip
- fix scanf issues with plibc ignoring '.' before the last '-'
Diffstat (limited to 'src/testbed/testbed_api_hosts.c')
-rw-r--r--src/testbed/testbed_api_hosts.c8
1 files changed, 4 insertions, 4 deletions
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,
486 { 486 {
487 data[offset] = '\0'; 487 data[offset] = '\0';
488 ret = 488 ret =
489 SSCANF (buf, "%255[a-zA-Z0-9_]@%255[a-zA-Z0-9.-]:%5hd", username, 489 SSCANF (buf, "%255[a-zA-Z0-9_]@%255[.a-zA-Z0-9-]:%5hd", username,
490 hostname, &port); 490 hostname, &port);
491 if (3 == ret) 491 if (3 == ret)
492 { 492 {
493 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 493 LOG (GNUNET_ERROR_TYPE_DEBUG,
494 "Successfully read host %s, port %d and user %s from file\n", 494 "Successfully read host %s, port %d and user %s from file\n",
495 hostname, port, username); 495 hostname, port, username);
496 /* We store hosts in a static list; hence we only require the starting 496 /* We store hosts in a static list; hence we only require the starting
497 * host pointer in that list to access the newly created list of hosts */ 497 * host pointer in that list to access the newly created list of hosts */
498 if (NULL == starting_host) 498 if (NULL == starting_host)