From 5581323c2c81bee79e34b7cfeac625c8eca344ce Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Thu, 8 Sep 2011 15:15:41 +0200 Subject: string: Use the struct and array for allocating the struct. --- include/libssh/string.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/libssh/string.h b/include/libssh/string.h index ccdbb17..5f3942d 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)) -- cgit