diff options
author | Michael R Sweet <michael.r.sweet@gmail.com> | 2018-11-06 16:20:56 -0500 |
---|---|---|
committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2018-11-06 16:20:56 -0500 |
commit | c4edc066e93e9e9af80912c68989e5c5a1e9f1be (patch) | |
tree | 713d033077d7fad33c76e02e11ff117a3830f6fa /cups | |
parent | 6276d173b6bf9774747e33da79fbd2076f657f3b (diff) |
Fix more compiler warnings (Issue #5423)
Diffstat (limited to 'cups')
-rw-r--r-- | cups/ppd-cache.c | 2 | ||||
-rw-r--r-- | cups/tls-gnutls.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/cups/ppd-cache.c b/cups/ppd-cache.c index babb6aded..e4af7b644 100644 --- a/cups/ppd-cache.c +++ b/cups/ppd-cache.c @@ -3964,7 +3964,7 @@ _ppdCreateFromIPP(char *buffer, /* I - Filename buffer */ if (tray_len >= (int)sizeof(tray)) tray_len = (int)sizeof(tray) - 1; - memcpy(tray, tray_ptr, tray_len); + memcpy(tray, tray_ptr, (size_t)tray_len); tray[tray_len] = '\0'; if (strstr(tray, "stackingorder=lastToFirst;")) diff --git a/cups/tls-gnutls.c b/cups/tls-gnutls.c index 71125073c..05ec8ec7f 100644 --- a/cups/tls-gnutls.c +++ b/cups/tls-gnutls.c @@ -394,7 +394,7 @@ httpCredentialsAreValidForName( for (i = 0; i < count; i ++) { rserial_size = sizeof(rserial); - if (!gnutls_x509_crl_get_crt_serial(tls_crl, (unsigned)i, rserial, &rserial_size, NULL) && cserial_size == rserial_size && !memcmp(cserial, rserial, (int)rserial_size)) + if (!gnutls_x509_crl_get_crt_serial(tls_crl, (unsigned)i, rserial, &rserial_size, NULL) && cserial_size == rserial_size && !memcmp(cserial, rserial, rserial_size)) { result = 0; break; |