aboutsummaryrefslogtreecommitdiff
path: root/src/gns/gnunet-gns-proxy.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gns/gnunet-gns-proxy.c')
-rw-r--r--src/gns/gnunet-gns-proxy.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gns/gnunet-gns-proxy.c b/src/gns/gnunet-gns-proxy.c
index eeef1a8a2..e544a7867 100644
--- a/src/gns/gnunet-gns-proxy.c
+++ b/src/gns/gnunet-gns-proxy.c
@@ -884,6 +884,7 @@ mhd_content_cb (void *cls,
884 memmove (ctask->buffer, ctask->buffer_read_ptr, bytes_to_copy); 884 memmove (ctask->buffer, ctask->buffer_read_ptr, bytes_to_copy);
885 ctask->buffer_read_ptr = ctask->buffer; 885 ctask->buffer_read_ptr = ctask->buffer;
886 ctask->buffer_write_ptr = ctask->buffer + bytes_to_copy; 886 ctask->buffer_write_ptr = ctask->buffer + bytes_to_copy;
887 ctask->buffer[bytes_to_copy] = '\0';
887 } 888 }
888 889
889 if (bytes_to_copy+copied > max) 890 if (bytes_to_copy+copied > max)
@@ -1068,6 +1069,7 @@ curl_download_cb (void *ptr, size_t size, size_t nmemb, void* ctx)
1068 memcpy (ctask->buffer_write_ptr, cbuf, total); 1069 memcpy (ctask->buffer_write_ptr, cbuf, total);
1069 ctask->bytes_in_buffer += total; 1070 ctask->bytes_in_buffer += total;
1070 ctask->buffer_write_ptr += total; 1071 ctask->buffer_write_ptr += total;
1072 ctask->buffer_write_ptr[0] = '\0';
1071 1073
1072 //run_mhd_now (ctask->mhd); 1074 //run_mhd_now (ctask->mhd);
1073 return total; 1075 return total;