From f2a1bb6217c0ffc69d861746723b2b6b346610ed Mon Sep 17 00:00:00 2001 From: Martin Schanzenbach Date: Mon, 11 Jun 2012 10:32:43 +0000 Subject: [PATCH 1/1] -fix --- src/gns/gnunet-gns-proxy.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.25.1