-improving error reporting on #2295
authorChristian Grothoff <christian@grothoff.org>
Wed, 2 May 2012 19:46:48 +0000 (19:46 +0000)
committerChristian Grothoff <christian@grothoff.org>
Wed, 2 May 2012 19:46:48 +0000 (19:46 +0000)
src/peerinfo-tool/gnunet-peerinfo.c

index 3aded8eea108964c00907ccbb4d14595895b9d2a..ab5a1573000b3f459852b628ceabd80f7ae7d217 100644 (file)
@@ -640,7 +640,7 @@ add_address_to_hello (void *cls, size_t max, void *buffer)
   if (GNUNET_OK !=
       papi->string_to_address (papi->cls, 
                               plugin_address,
-                              strlen (plugin_address),
+                              strlen (plugin_address) + 1,
                               &addr,
                               &addr_len))
   {