Mercurial > hg > nginx
diff src/mail/ngx_mail_smtp_module.c @ 6860:f18c285c2e59
Win32: fixed some warnings reported by Borland C.
Most notably, warning W8012 (comparing signed and unsigned values) reported
in multiple places where an unsigned value of small type (e.g., u_short) is
promoted to an int and compared to an unsigned value.
Warning W8072 (suspicious pointer arithmetic) disabled, it is reported
when we increment base pointer in ngx_shm_alloc().
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Sat, 24 Dec 2016 18:01:14 +0300 |
parents | bcb107bb89cd |
children | dc955d274130 |
line wrap: on
line diff
--- a/src/mail/ngx_mail_smtp_module.c Sat Dec 24 18:01:14 2016 +0300 +++ b/src/mail/ngx_mail_smtp_module.c Sat Dec 24 18:01:14 2016 +0300 @@ -280,7 +280,7 @@ p = ngx_cpymem(p, conf->capability.data, conf->capability.len); - p = ngx_cpymem(p, "250 STARTTLS" CRLF, sizeof("250 STARTTLS" CRLF) - 1); + ngx_memcpy(p, "250 STARTTLS" CRLF, sizeof("250 STARTTLS" CRLF) - 1); p = conf->starttls_capability.data + (last - conf->capability.data) + 3;