[Python-checkins] CVS: python/dist/src/Modules getnameinfo.c,1.1,1.2
Martin v. L?wis
loewis@users.sourceforge.net
Sun, 24 Jun 2001 23:37:04 -0700
Update of /cvsroot/python/python/dist/src/Modules
In directory usw-pr-cvs1:/tmp/cvs-serv13523
Modified Files:
getnameinfo.c
Log Message:
Replace snprintf with sprintf.
Index: getnameinfo.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/getnameinfo.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** getnameinfo.c 2001/06/23 16:30:13 1.1
--- getnameinfo.c 2001/06/25 06:37:02 1.2
***************
*** 131,135 ****
/* what we should do? */
} else if (flags & NI_NUMERICSERV) {
! snprintf(numserv, sizeof(numserv), "%d", ntohs(port));
if (strlen(numserv) > servlen)
return ENI_MEMORY;
--- 131,135 ----
/* what we should do? */
} else if (flags & NI_NUMERICSERV) {
! sprintf(numserv, "%d", ntohs(port));
if (strlen(numserv) > servlen)
return ENI_MEMORY;