aboutsummaryrefslogtreecommitdiff
path: root/include/libssh
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2011-09-08 15:15:41 +0200
committerAndreas Schneider <asn@cryptomilk.org>2011-09-08 15:50:39 +0200
commit5581323c2c81bee79e34b7cfeac625c8eca344ce (patch)
treed901106adc3dae29bd39e9d707ad2a673a385a6e /include/libssh
parent55c758d0798f89e5f904cc09c272148415c235b7 (diff)
downloadlibssh-5581323c2c81bee79e34b7cfeac625c8eca344ce.tar.gz
libssh-5581323c2c81bee79e34b7cfeac625c8eca344ce.tar.xz
libssh-5581323c2c81bee79e34b7cfeac625c8eca344ce.zip
string: Use the struct and array for allocating the struct.
Diffstat (limited to 'include/libssh')
-rw-r--r--include/libssh/string.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/libssh/string.h b/include/libssh/string.h
index ccdbb175..5f3942db 100644
--- a/include/libssh/string.h
+++ b/include/libssh/string.h
@@ -29,7 +29,7 @@
#endif
struct ssh_string_struct {
uint32_t size;
- unsigned char string[MAX_PACKET_LEN];
+ unsigned char data[1];
}
#if !defined(__SUNPRO_C) && !defined(_MSC_VER)
__attribute__ ((packed))