From 5e16b0ebccb233f7aeaf3928a853ee966b7cbb39 Mon Sep 17 00:00:00 2001 From: Kean Johnston Date: Wed, 18 Jul 2007 09:27:06 -0700 Subject: Fix typo in Xtranslcl.c (sprintf with size argument should be snprintf) --- Xtranslcl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Xtranslcl.c') 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()); } -- cgit v1.2.3