From: Hallvard Furuseth Date: Sat, 15 Dec 2007 23:36:22 +0000 (+0000) Subject: Declare enough buffer space for out-of-range URL port numbers X-Git-Tag: OPENLDAP_REL_ENG_2_4_9~20^2~295 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e4ffd33f1a2882f17b581ddb6cff7821cb460bec;p=openldap Declare enough buffer space for out-of-range URL port numbers --- diff --git a/libraries/libldap/url.c b/libraries/libldap/url.c index 4ef41f5ef4..6240efb943 100644 --- a/libraries/libldap/url.c +++ b/libraries/libldap/url.c @@ -582,7 +582,7 @@ desc2str_len( LDAPURLDesc *u ) len += sep; if ( u->lud_port ) { - char buf[ STRLENOF(":65535") + 1 ]; + char buf[LDAP_PVT_INTTYPE_CHARS(int) + 1]; len += snprintf( buf, sizeof( buf ), ":%d", u->lud_port ); if ( u->lud_host && u->lud_host[0] ) {