From: Martin Schanzenbach Date: Mon, 11 Jun 2012 10:32:43 +0000 (+0000) Subject: -fix X-Git-Tag: initial-import-from-subversion-38251~13159 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=f2a1bb6217c0ffc69d861746723b2b6b346610ed;hp=873e2c154f3154a181bbc433475ed97999463aea;p=oweals%2Fgnunet.git -fix --- 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;