X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=src%2Fgns%2Fgnunet-gns-proxy.c;h=52f47dad27c7999f0e771f3fdd8d1932283adf72;hb=f2a1bb6217c0ffc69d861746723b2b6b346610ed;hp=b4ad6cb3dbbc1ddbacde94b5fa8090d52c619df8;hpb=873e2c154f3154a181bbc433475ed97999463aea;p=oweals%2Fgnunet.git diff --git a/src/gns/gnunet-gns-proxy.c b/src/gns/gnunet-gns-proxy.c index b4ad6cb3d..52f47dad2 100644 --- a/src/gns/gnunet-gns-proxy.c +++ b/src/gns/gnunet-gns-proxy.c @@ -644,9 +644,9 @@ mhd_content_cb (void *cls, ctask->authority); } /* If .zkey simply copy the name */ - else if (0 == strcmp (ctask->buffer_ptr+m[1].rm_eo, "zkey", 4)) + else { - memcpy (ctask->pp_buf, hostptr, (m[1].rm_eo-m[1].rm_so+4)); + memcpy (ctask->pp_buf, hostptr, (m[1].rm_eo-m[1].rm_so + strlen (GNUNET_TLD_ZKEY))); } ctask->is_postprocessing = GNUNET_YES;