aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAris Adamantiadis <aris@0xbadc0de.be>2010-10-03 13:01:21 +0200
committerAris Adamantiadis <aris@0xbadc0de.be>2010-10-03 13:01:21 +0200
commit0bc032726dbd40b2ee478c5f34b4bcfd04627115 (patch)
treec684067a7c8fdfce890bab310bc91b5ebb2759f1 /include
parentb2f571e544f82116bb78b954a8c449105df148d4 (diff)
downloadlibssh-0bc032726dbd40b2ee478c5f34b4bcfd04627115.tar.gz
libssh-0bc032726dbd40b2ee478c5f34b4bcfd04627115.tar.xz
libssh-0bc032726dbd40b2ee478c5f34b4bcfd04627115.zip
Fix prepend bug
Diffstat (limited to 'include')
-rw-r--r--include/libssh/buffer.h8
1 files changed, 7 insertions, 1 deletions
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;