From b0bda0a4ee248ab3b0ccd0fad2f62b8b66c5fc6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Mart=C3=ADn=20Nieto?= Date: Wed, 7 Sep 2011 19:13:40 +0200 Subject: [PATCH] netops: get rid of the len - 1 limitation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This was as a result of the pkt code using string functions where they shouldn't. Signed-off-by: Carlos Martín Nieto --- src/netops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }