diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2012-07-08 18:09:54 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2012-10-02 22:14:45 -0700 |
commit | f0df23d778ae5b85745de0e48729b039b5b3f69a (patch) | |
tree | 578786bf7dfc5e90cf70591e230118b881a127ae /common.c | |
parent | d5cc5b0e6b4e9cd1ee35e58069018f75bb0a3ed3 (diff) | |
download | xscope-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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)) { |