From: Pierangelo Masarati Date: Thu, 9 Sep 2010 16:05:26 +0000 (+0000) Subject: fix format specifier (ITS#6644) X-Git-Tag: MIGRATION_CVS2GIT~485 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=4601107e4e198e949dd16cd4b74135f9a558cced;p=openldap fix format specifier (ITS#6644) --- diff --git a/libraries/libldap/dnssrv.c b/libraries/libldap/dnssrv.c index 8c5051d13b..3d88c80bd0 100644 --- a/libraries/libldap/dnssrv.c +++ b/libraries/libldap/dnssrv.c @@ -289,7 +289,7 @@ int ldap_domain2hostlist( /* not first time around */ hostlist[cur++] = ' '; } - cur += sprintf(&hostlist[cur], "%s:%hd", host, port); + cur += sprintf(&hostlist[cur], "%s:%hu", host, port); } add_size:; p += size;