telnetd: fix problem with zombies (by Paul Fox <pgf@brightstareng.com>)

syslogd: strip trailing NULs
This commit is contained in:
Denis Vlasenko
2007-11-06 01:38:46 +00:00
parent cb981638f5
commit 018b155ad9
3 changed files with 41 additions and 22 deletions

View File

@@ -57,7 +57,7 @@ typedef union {
uint16_t filename_len; /* 22-23 */
uint16_t extra_len; /* 24-25 */
} formatted ATTRIBUTE_PACKED;
} zip_header_t;
} zip_header_t ATTRIBUTE_PACKED;
/* Check the offset of the last element, not the length. This leniency
* allows for poor packing, whereby the overall struct may be too long,