From 02ffb657b023d9b2a2c6c1d2417da8dcb96aa4b2 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Thu, 24 Aug 2006 14:46:42 -0700 Subject: More sprintf -> snprintf conversions --- Xtransutil.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Xtransutil.c') diff --git a/Xtransutil.c b/Xtransutil.c index 253e8b0..cc57193 100644 --- a/Xtransutil.c +++ b/Xtransutil.c @@ -300,7 +300,7 @@ TRANS(GetMyNetworkId) (XtransConnInfo ciptr) #endif portnum = ntohs (saddr->sin_port); - sprintf (portnumbuf, "%d", portnum); + snprintf (portnumbuf, sizeof(portnumbuf), "%d", portnum); networkId = (char *) xalloc (3 + strlen (transName) + strlen (hostnamebuf) + strlen (portnumbuf)); sprintf (networkId, "%s/%s:%s", transName, hostnamebuf, portnumbuf); -- cgit v1.2.3