mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-08 17:33:35 +00:00
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>
This commit is contained in:
parent
76a9081db2
commit
b0bda0a4ee
@ -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(buf, 0x0, sizeof(gitno_buffer));
|
||||||
memset(data, 0x0, len);
|
memset(data, 0x0, len);
|
||||||
buf->data = data;
|
buf->data = data;
|
||||||
buf->len = len - 1;
|
buf->len = len;
|
||||||
buf->offset = 0;
|
buf->offset = 0;
|
||||||
buf->fd = fd;
|
buf->fd = fd;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user