From e92e1fb64cc617344d037a9cbec2523697f1f37d Mon Sep 17 00:00:00 2001 From: Matthieu Herrb Date: Fri, 21 Nov 2008 15:33:58 +0100 Subject: Fix snprintf() argument order. --- Xtranssock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Xtranssock.c') diff --git a/Xtranssock.c b/Xtranssock.c index 06f4556..0e333da 100644 --- a/Xtranssock.c +++ b/Xtranssock.c @@ -838,7 +838,7 @@ set_sun_path(const char *port, const char *upath, char *path, int abstract) if (strlen(port) + strlen(upath) > maxlen) return -1; - snprintf(path, "%s%s%s", maxlen+1, at, upath, port); + snprintf(path, maxlen+1, "%s%s%s", at, upath, port); return 0; } #endif -- cgit v1.2.3