diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2007-10-12 11:15:54 +0000 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2007-10-12 11:15:54 +0000 |
commit | f7b0a392067280312b1a4e7a3b9254f008560ab5 (patch) | |
tree | 1d4d4a3216aae7ecf37e53445cfb0b54cfa19e1d /gacopyz | |
parent | abba405eb603deaf69e31701464d8fdeb3aa1f2c (diff) | |
download | mailfromd-f7b0a392067280312b1a4e7a3b9254f008560ab5.tar.gz mailfromd-f7b0a392067280312b1a4e7a3b9254f008560ab5.tar.bz2 |
* src/mtasim.c (_def_read): Return 0 if zero bytes were read
(get_input_line): Fix counting of input bytes.
(smtp): Fix checking for returns from process_data_reply.
* gacopyz/server.c (srv_format_macros): Do not add trailing zero
to the packet.
git-svn-id: file:///svnroot/mailfromd/trunk@1515 7a8a7f39-df28-0410-adc6-e0d955640f24
Diffstat (limited to 'gacopyz')
-rw-r--r-- | gacopyz/server.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gacopyz/server.c b/gacopyz/server.c index 9187f10d..401854b2 100644 --- a/gacopyz/server.c +++ b/gacopyz/server.c @@ -164,7 +164,7 @@ srv_format_macros(gacopyz_srv_t srv, unsigned char cmd, size_t *psize) { size_t i; char *p; - size_t size = macro_size(srv) + 2; + size_t size = macro_size(srv) + 1; struct gacopyz_macro_def *def; srv_ensure_space(srv, size); @@ -188,7 +188,6 @@ srv_format_macros(gacopyz_srv_t srv, unsigned char cmd, size_t *psize) memcpy(p, def->value, len); p += len; } - *p = 0; *psize = size; } |