From 2b110f97132668bbf19622de4b97ac022db98f74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20v=2E=20L=C3=B6wis?= Date: Mon, 25 Jun 2001 06:37:02 +0000 Subject: Replace snprintf with sprintf. --- Modules/getnameinfo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/getnameinfo.c b/Modules/getnameinfo.c index 182a3bf..33d6ad3 100644 --- a/Modules/getnameinfo.c +++ b/Modules/getnameinfo.c @@ -130,7 +130,7 @@ getnameinfo(sa, salen, host, hostlen, serv, servlen, flags) if (serv == NULL || servlen == 0) { /* what we should do? */ } else if (flags & NI_NUMERICSERV) { - snprintf(numserv, sizeof(numserv), "%d", ntohs(port)); + sprintf(numserv, "%d", ntohs(port)); if (strlen(numserv) > servlen) return ENI_MEMORY; strcpy(serv, numserv); -- cgit v0.12