From 0bc032726dbd40b2ee478c5f34b4bcfd04627115 Mon Sep 17 00:00:00 2001 From: Aris Adamantiadis Date: Sun, 3 Oct 2010 13:01:21 +0200 Subject: Fix prepend bug --- include/libssh/buffer.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'include/libssh') diff --git a/include/libssh/buffer.h b/include/libssh/buffer.h index dec11739..4a50bcc7 100644 --- a/include/libssh/buffer.h +++ b/include/libssh/buffer.h @@ -23,7 +23,13 @@ #define BUFFER_H_ #include "libssh/libssh.h" -/* Describes a buffer state */ +/* + * Describes a buffer state + * [XXXXXXXXXXXXDATA PAYLOAD XXXXXXXXXXXXXXXXXXXXXXXX] + * ^ ^ ^ ^] + * \_data points\_pos points here \_used points here | / + * here Allocated + */ struct ssh_buffer_struct { char *data; uint32_t used; -- cgit v1.2.3