summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Xtranslcl.c2
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());
}