summaryrefslogtreecommitdiff
path: root/alpine/alpine.c
diff options
context:
space:
mode:
authorEduardo Chappa <chappa@washington.edu>2020-06-08 17:19:07 -0600
committerEduardo Chappa <chappa@washington.edu>2020-06-08 17:19:07 -0600
commitd741ceda2bd53d15d48fc1b9c4d836a9016194a7 (patch)
tree65800837f16908a3ff6f6094311f74272e10af99 /alpine/alpine.c
parenta340c0ecbfb80335b11bd5d5c50d130ba86b2812 (diff)
downloadalpine-d741ceda2bd53d15d48fc1b9c4d836a9016194a7.tar.xz
* Remove some compilation warnings given by clang7.
Diffstat (limited to 'alpine/alpine.c')
-rw-r--r--alpine/alpine.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/alpine/alpine.c b/alpine/alpine.c
index d6e5e44e..8155f54a 100644
--- a/alpine/alpine.c
+++ b/alpine/alpine.c
@@ -715,9 +715,7 @@ main(int argc, char **argv)
}
if(max_v > 0 && max_v < (long) pith_ssl_encryption_version("tls1")){
- snprintf(tmp_20k_buf, SIZEOF_20KBUF,
- _("Security alert: SSL maximum encryption version was set to SSLv3."),
- ps_global->VAR_ENCRYPTION_RANGE);
+ strncpy(tmp_20k_buf, _("Security alert: SSL maximum encryption version was set to SSLv3."), SIZEOF_20KBUF);
tmp_20k_buf[SIZEOF_20KBUF-1] = '\0';
init_error(ps_global, SM_ORDER | SM_DING, 3, 5, tmp_20k_buf);
}