From a390e47c7947c98d4054d293ee96d989d0e27dfc Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 7 Oct 2013 19:28:15 +0000 Subject: [PATCH] -fix friends file parser logic, a NOT operator is a wonderful thing sometimes --- src/topology/friends.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/topology/friends.c b/src/topology/friends.c index 81f00c667..5c074e941 100644 --- a/src/topology/friends.c +++ b/src/topology/friends.c @@ -89,7 +89,7 @@ GNUNET_FRIENDS_parse (const struct GNUNET_CONFIGURATION_Handle *cfg, pos = 0; while (pos < fsize) { - while ((pos < fsize) && isspace ((unsigned char) data[pos])) + while ((pos < fsize) && (! isspace ((int) data[pos]))) pos++; if (GNUNET_OK != GNUNET_CRYPTO_ecc_public_sign_key_from_string (&data[start], @@ -97,7 +97,7 @@ GNUNET_FRIENDS_parse (const struct GNUNET_CONFIGURATION_Handle *cfg, &pid.public_key)) { GNUNET_log (GNUNET_ERROR_TYPE_WARNING, - _("Syntax error in topology specification at offset %llu, skipping bytes `%.*s'.\n"), + _("Syntax error in FRIENDS file at offset %llu, skipping bytes `%.*s'.\n"), (unsigned long long) pos, (int) (pos - start), &data[start]); -- 2.25.1