summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/netops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/netops.c b/src/netops.c
index f44209aef..dadc2bc00 100644
--- a/src/netops.c
+++ b/src/netops.c
@@ -45,7 +45,7 @@ void gitno_buffer_setup(gitno_buffer *buf, char *data, unsigned int len, int fd)
memset(buf, 0x0, sizeof(gitno_buffer));
memset(data, 0x0, len);
buf->data = data;
- buf->len = len - 1;
+ buf->len = len;
buf->offset = 0;
buf->fd = fd;
}