string: Use the struct and array for allocating the struct.

This commit is contained in:
Andreas Schneider
2011-09-08 15:15:41 +02:00
parent 55c758d079
commit 5581323c2c
4 changed files with 27 additions and 24 deletions

View File

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