diff options
author | Carlos Martín Nieto <carlos@cmartin.tk> | 2011-09-07 19:13:40 +0200 |
---|---|---|
committer | Carlos Martín Nieto <carlos@cmartin.tk> | 2011-09-09 13:12:11 +0200 |
commit | b0bda0a4ee248ab3b0ccd0fad2f62b8b66c5fc6c (patch) | |
tree | de9d707da6b2f07e38ad65d074337cb4d2e9b70e | |
parent | 76a9081db2c7a8adb9eac2c02b71358106a41930 (diff) | |
download | libgit2-b0bda0a4ee248ab3b0ccd0fad2f62b8b66c5fc6c.tar.gz |
netops: get rid of the len - 1 limitation
This was as a result of the pkt code using string functions where
they shouldn't.
Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
-rw-r--r-- | src/netops.c | 2 |
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; } |