]> git.sur5r.net Git - openldap/commitdiff
minor cleanup
authorPierangelo Masarati <ando@openldap.org>
Tue, 11 Feb 2003 09:23:28 +0000 (09:23 +0000)
committerPierangelo Masarati <ando@openldap.org>
Tue, 11 Feb 2003 09:23:28 +0000 (09:23 +0000)
libraries/libldap/url.c

index e5909bac417e7b1905e9e039e17445050e88e901..00413dc0880e8e34a65631ee958cfd8ba483c077 100644 (file)
@@ -355,7 +355,7 @@ char * ldap_url_desc2str( LDAPURLDesc *u )
        };
 
        if( u->lud_port ) {
-               len+=6;
+               len += sizeof(":65535") - 1;
        }
 
        if( u->lud_host ) {