X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=libraries%2Flibldap%2Fdnssrv.c;h=e4c6580320ad44efb5f22f5486b4d25a65add980;hb=87927222fecf4d1bd7aac1eb5ee0093702861470;hp=915472e7be930c1d46d57ea2010a41e6f0cfc2e3;hpb=fccca0ead9394c79aefc76413d7344ce34e6567c;p=openldap diff --git a/libraries/libldap/dnssrv.c b/libraries/libldap/dnssrv.c index 915472e7be..e4c6580320 100644 --- a/libraries/libldap/dnssrv.c +++ b/libraries/libldap/dnssrv.c @@ -1,7 +1,7 @@ /* $OpenLDAP$ */ /* This work is part of OpenLDAP Software . * - * Copyright 1998-2014 The OpenLDAP Foundation. + * Copyright 1998-2015 The OpenLDAP Foundation. * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -399,7 +399,7 @@ add_size:; if(cur>0){ hostlist[cur++]=' '; } - cur += sprintf(&hostlist[cur], "%s:%hd", hostent_head[i].hostname, hostent_head[i].port); + cur += sprintf(&hostlist[cur], "%s:%hu", hostent_head[i].hostname, hostent_head[i].port); } }