]> git.sur5r.net Git - openldap/commitdiff
fix format specifier (ITS#6644)
authorPierangelo Masarati <ando@openldap.org>
Thu, 9 Sep 2010 16:05:26 +0000 (16:05 +0000)
committerPierangelo Masarati <ando@openldap.org>
Thu, 9 Sep 2010 16:05:26 +0000 (16:05 +0000)
libraries/libldap/dnssrv.c

index 8c5051d13b1fcbf68cb1fc0d4cc50f4b747f22c0..3d88c80bd0da716a906303b0ef894afadb314abe 100644 (file)
@@ -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;