[Commits] [SCM] claws branch, master, updated. 3.17.6-16-g8c56a71de
paul at claws-mail.org
paul at claws-mail.org
Tue Sep 8 14:21:47 CEST 2020
The branch, master has been updated
via 8c56a71decab085e5639bf3fb8e73fcdbedd64e9 (commit)
from c2d5196c26dea84b69ffe0c8661f8597e200f7d3 (commit)
Summary of changes:
src/gtk/sslcertwindow.c | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
- Log -----------------------------------------------------------------
commit 8c56a71decab085e5639bf3fb8e73fcdbedd64e9
Author: Paul <paul at claws-mail.org>
Date: Tue Sep 8 13:21:43 2020 +0100
keep gcc from grumbling
diff --git a/src/gtk/sslcertwindow.c b/src/gtk/sslcertwindow.c
index 32c8e7b0c..688797139 100644
--- a/src/gtk/sslcertwindow.c
+++ b/src/gtk/sslcertwindow.c
@@ -84,14 +84,14 @@ static GtkWidget *cert_presenter(SSLCertificate *cert)
n = BUFFSIZE;
if (gnutls_x509_crt_get_issuer_dn_by_oid(cert->x509_cert,
GNUTLS_OID_X520_COMMON_NAME, 0, 0, issuer_commonname, &n))
- strncpy(issuer_commonname, _("<not in certificate>"), BUFFSIZE);
+ strncpy(issuer_commonname, _("<not in certificate>"), BUFFSIZE-1);
n = BUFFSIZE;
if (gnutls_x509_crt_get_issuer_dn_by_oid(cert->x509_cert,
GNUTLS_OID_X520_LOCALITY_NAME, 0, 0, issuer_location, &n)) {
if (gnutls_x509_crt_get_issuer_dn_by_oid(cert->x509_cert,
GNUTLS_OID_X520_COUNTRY_NAME, 0, 0, issuer_location, &n)) {
- strncpy(issuer_location, _("<not in certificate>"), BUFFSIZE);
+ strncpy(issuer_location, _("<not in certificate>"), BUFFSIZE-1);
}
} else {
tmp = g_malloc(BUFFSIZE);
@@ -106,19 +106,19 @@ static GtkWidget *cert_presenter(SSLCertificate *cert)
n = BUFFSIZE;
if (gnutls_x509_crt_get_issuer_dn_by_oid(cert->x509_cert,
GNUTLS_OID_X520_ORGANIZATION_NAME, 0, 0, issuer_organization, &n))
- strncpy(issuer_organization, _("<not in certificate>"), BUFFSIZE);
+ strncpy(issuer_organization, _("<not in certificate>"), BUFFSIZE-1);
n = BUFFSIZE;
if (gnutls_x509_crt_get_dn_by_oid(cert->x509_cert,
GNUTLS_OID_X520_COMMON_NAME, 0, 0, subject_commonname, &n))
- strncpy(subject_commonname, _("<not in certificate>"), BUFFSIZE);
+ strncpy(subject_commonname, _("<not in certificate>"), BUFFSIZE-1);
n = BUFFSIZE;
if (gnutls_x509_crt_get_dn_by_oid(cert->x509_cert,
GNUTLS_OID_X520_LOCALITY_NAME, 0, 0, subject_location, &n)) {
if (gnutls_x509_crt_get_dn_by_oid(cert->x509_cert,
GNUTLS_OID_X520_COUNTRY_NAME, 0, 0, subject_location, &n)) {
- strncpy(subject_location, _("<not in certificate>"), BUFFSIZE);
+ strncpy(subject_location, _("<not in certificate>"), BUFFSIZE-1);
}
} else {
tmp = g_malloc(BUFFSIZE);
@@ -133,7 +133,7 @@ static GtkWidget *cert_presenter(SSLCertificate *cert)
n = BUFFSIZE;
if (gnutls_x509_crt_get_dn_by_oid(cert->x509_cert,
GNUTLS_OID_X520_ORGANIZATION_NAME, 0, 0, subject_organization, &n))
- strncpy(subject_organization, _("<not in certificate>"), BUFFSIZE);
+ strncpy(subject_organization, _("<not in certificate>"), BUFFSIZE-1);
exp_time_t = gnutls_x509_crt_get_expiration_time(cert->x509_cert);
-----------------------------------------------------------------------
hooks/post-receive
--
Claws Mail
More information about the Commits
mailing list