diff options
author | Kean Johnston <kean@armory.com> | 2007-07-18 09:27:06 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@sun.com> | 2007-07-18 09:27:06 -0700 |
commit | 5e16b0ebccb233f7aeaf3928a853ee966b7cbb39 (patch) | |
tree | 7566a77da2b04d726d30e742db7984d7a8055f0d /Xtranslcl.c | |
parent | 1abc981349140260d6fb643d29cf2b851fc06ac9 (diff) |
Fix typo in Xtranslcl.c (sprintf with size argument should be snprintf)
Diffstat (limited to 'Xtranslcl.c')
-rw-r--r-- | Xtranslcl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Xtranslcl.c b/Xtranslcl.c index ef846a4..9b83bb3 100644 --- a/Xtranslcl.c +++ b/Xtranslcl.c @@ -846,7 +846,7 @@ TRANS(NAMEDOpenServer)(XtransConnInfo ciptr, char *port) NAMEDNODENAME, port); } } else { - (void) sprintf(server_path, sizeof(server_path), "%s%ld", + (void) snprintf(server_path, sizeof(server_path), "%s%ld", NAMEDNODENAME, (long)getpid()); } |