fix identity rename
authorPhil <phil.buschmann@tum.de>
Fri, 10 Aug 2018 21:50:40 +0000 (23:50 +0200)
committerPhil <phil.buschmann@tum.de>
Fri, 10 Aug 2018 21:50:40 +0000 (23:50 +0200)
src/identity/gnunet-service-identity.c

index 266f5ccc353e49a4f059cfee31565598f72b0aec..155c49cc52f9cf9aaf75dc8c6b8d9943340581ba 100644 (file)
@@ -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)