aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Schanzenbach <mschanzenbach@posteo.de>2012-07-12 16:23:42 +0000
committerMartin Schanzenbach <mschanzenbach@posteo.de>2012-07-12 16:23:42 +0000
commitf7031640f16ac459d6be5c8c055d37fb7d9a6a9d (patch)
tree494673f02023c426479452094ab6c09782af6e2d
parent88f513fd13ba4f0746fe967948f72f969e833f37 (diff)
downloadgnunet-f7031640f16ac459d6be5c8c055d37fb7d9a6a9d.tar.gz
gnunet-f7031640f16ac459d6be5c8c055d37fb7d9a6a9d.zip
-fix
-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;