Skip to content

Commit 9a8b7c0

Browse files
committed
Cast field-length variables used in printf to int, because sometimes
they might be of a wider type.
1 parent f5e8bfb commit 9a8b7c0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/interfaces/libpq/fe-auth.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* exceed INITIAL_EXPBUFFER_SIZE (currently 256 bytes).
1111
*
1212
* IDENTIFICATION
13-
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-auth.c,v 1.84 2003/10/25 03:48:47 momjian Exp $
13+
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-auth.c,v 1.85 2003/11/26 15:55:01 petere Exp $
1414
*
1515
*-------------------------------------------------------------------------
1616
*/
@@ -409,11 +409,11 @@ pg_krb5_sendauth(char *PQerrormsg, int sock, const char *hostname)
409409
#if defined(HAVE_KRB5_ERROR_TEXT_DATA)
410410
snprintf(PQerrormsg, PQERRORMSG_LENGTH,
411411
libpq_gettext("Kerberos 5 authentication rejected: %*s\n"),
412-
err_ret->text.length, err_ret->text.data);
412+
(int) err_ret->text.length, err_ret->text.data);
413413
#elif defined(HAVE_KRB5_ERROR_E_DATA)
414414
snprintf(PQerrormsg, PQERRORMSG_LENGTH,
415415
libpq_gettext("Kerberos 5 authentication rejected: %*s\n"),
416-
err_ret->e_data->length,
416+
(int) err_ret->e_data->length,
417417
(const char *) err_ret->e_data->data);
418418
#else
419419
#error "bogus configuration"

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy