diff options
Diffstat (limited to 'src/gns/gnunet-gns-proxy.c')
-rw-r--r-- | src/gns/gnunet-gns-proxy.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/gns/gnunet-gns-proxy.c b/src/gns/gnunet-gns-proxy.c index 7fe221b7c..ad8b95915 100644 --- a/src/gns/gnunet-gns-proxy.c +++ b/src/gns/gnunet-gns-proxy.c | |||
@@ -1189,11 +1189,7 @@ mhd_content_cb (void *cls, | |||
1189 | } | 1189 | } |
1190 | 1190 | ||
1191 | if (bytes_to_copy + copied > max) | 1191 | if (bytes_to_copy + copied > max) |
1192 | bytes_to_copy = max-copied; | 1192 | bytes_to_copy = max - copied; |
1193 | |||
1194 | if (0 > bytes_to_copy) | ||
1195 | bytes_to_copy = 0; | ||
1196 | |||
1197 | memcpy (buf+copied, ctask->buffer_read_ptr, bytes_to_copy); | 1193 | memcpy (buf+copied, ctask->buffer_read_ptr, bytes_to_copy); |
1198 | ctask->buffer_read_ptr += bytes_to_copy; | 1194 | ctask->buffer_read_ptr += bytes_to_copy; |
1199 | copied += bytes_to_copy; | 1195 | copied += bytes_to_copy; |