summaryrefslogtreecommitdiff
path: root/common.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2012-07-08 18:09:54 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2012-10-02 22:14:45 -0700
commitf0df23d778ae5b85745de0e48729b039b5b3f69a (patch)
tree578786bf7dfc5e90cf70591e230118b881a127ae /common.c
parentd5cc5b0e6b4e9cd1ee35e58069018f75bb0a3ed3 (diff)
downloadxscope-f0df23d778ae5b85745de0e48729b039b5b3f69a.tar.gz
Convert remaining sprintf calls to snprintf
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Mark Kettenis <kettenis@openbsd.org>
Diffstat (limited to 'common.c')
-rw-r--r--common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common.c b/common.c
index c0e9fd6..86bfca5 100644
--- a/common.c
+++ b/common.c
@@ -218,7 +218,7 @@ SetUpConnectionSocket(int iport, void (*connectionFunc) (int))
#ifdef USE_XTRANS
ScopePort = iport - ServerBasePort;
- sprintf(port, "%d", ScopePort);
+ snprintf(port, sizeof(port), "%d", ScopePort);
if ((_X11TransMakeAllCOTSServerListeners(port, &partial, &ListenTransCount,
&ListenTransConns) >= 0) &&
(ListenTransCount >= 1)) {