From: Phil Date: Fri, 10 Aug 2018 21:50:40 +0000 (+0200) Subject: fix identity rename X-Git-Tag: v0.11.0~309^2~19 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=d74e6d06434f195a7307497e4e0283185491264a;p=oweals%2Fgnunet.git fix identity rename --- diff --git a/src/identity/gnunet-service-identity.c b/src/identity/gnunet-service-identity.c index 266f5ccc3..155c49cc5 100644 --- a/src/identity/gnunet-service-identity.c +++ b/src/identity/gnunet-service-identity.c @@ -752,7 +752,7 @@ handle_rename_message (void *cls, old_name = GNUNET_strdup (old_name_tmp); GNUNET_STRINGS_utf8_tolower (old_name_tmp, old_name); new_name = GNUNET_strdup (&old_name_tmp[old_name_len]); - GNUNET_STRINGS_utf8_tolower (&old_name_tmp[old_name_len], old_name); + GNUNET_STRINGS_utf8_tolower (&old_name_tmp[old_name_len], new_name); /* check if new name is already in use */ for (ego = ego_head; NULL != ego; ego = ego->next)