diff options
author | Alan Coopersmith <alan.coopersmith@sun.com> | 2006-08-24 14:46:42 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@sun.com> | 2006-08-24 14:46:42 -0700 |
commit | 02ffb657b023d9b2a2c6c1d2417da8dcb96aa4b2 (patch) | |
tree | 78591680fd913c8822d9fc34286d7312f2ad09b5 /Xtranssock.c | |
parent | 3d5e7dd18c8836065c4835740211c10747b18abd (diff) |
More sprintf -> snprintf conversions
Diffstat (limited to 'Xtranssock.c')
-rw-r--r-- | Xtranssock.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Xtranssock.c b/Xtranssock.c index 1282ed3..07dc297 100644 --- a/Xtranssock.c +++ b/Xtranssock.c @@ -1100,7 +1100,8 @@ TRANS(SocketUNIXCreateListener) (XtransConnInfo ciptr, char *port, return TRANS_CREATE_LISTENER_FAILED; } } else { - sprintf (sockname.sun_path, "%s%ld", UNIX_PATH, (long)getpid()); + snprintf (sockname.sun_path, sizeof(sockname.sun_path), + "%s%ld", UNIX_PATH, (long)getpid()); } #if (defined(BSD44SOCKETS) || defined(__UNIXWARE__)) && !defined(Lynx) |