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] ) {