1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-11-27 13:21:11 +03:00

Fix prepend bug

This commit is contained in:
Aris Adamantiadis
2010-10-03 13:01:21 +02:00
parent b2f571e544
commit 0bc032726d
3 changed files with 29 additions and 5 deletions

View File

@@ -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;