From e4ffd33f1a2882f17b581ddb6cff7821cb460bec Mon Sep 17 00:00:00 2001 From: Hallvard Furuseth Date: Sat, 15 Dec 2007 23:36:22 +0000 Subject: [PATCH] Declare enough buffer space for out-of-range URL port numbers --- libraries/libldap/url.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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] ) { -- 2.39.5