diff options
author | Maxim Dounin <mdounin@mdounin.ru> | 2016-12-24 18:01:14 +0300 |
---|---|---|
committer | Maxim Dounin <mdounin@mdounin.ru> | 2016-12-24 18:01:14 +0300 |
commit | c17009ee756bf16e702ed48ef667765c121e36d6 (patch) | |
tree | c8f74895ac97264625ba4c3ded5f1e4a931bf5e9 /src/mail/ngx_mail_smtp_module.c | |
parent | a43b2c96b20aa675601c43785397aabd8335a891 (diff) | |
download | nginx-c17009ee756bf16e702ed48ef667765c121e36d6.tar.gz nginx-c17009ee756bf16e702ed48ef667765c121e36d6.zip |
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().
Diffstat (limited to 'src/mail/ngx_mail_smtp_module.c')
-rw-r--r-- | src/mail/ngx_mail_smtp_module.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mail/ngx_mail_smtp_module.c b/src/mail/ngx_mail_smtp_module.c index f03bd907e..3b5a2d8f3 100644 --- a/src/mail/ngx_mail_smtp_module.c +++ b/src/mail/ngx_mail_smtp_module.c @@ -280,7 +280,7 @@ ngx_mail_smtp_merge_srv_conf(ngx_conf_t *cf, void *parent, void *child) 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; |