diff options
author | Matthieu Herrb <matthieu@deville.herrb.net> | 2008-11-21 15:33:58 +0100 |
---|---|---|
committer | Matthieu Herrb <matthieu@deville.herrb.net> | 2008-11-21 15:33:58 +0100 |
commit | e92e1fb64cc617344d037a9cbec2523697f1f37d (patch) | |
tree | 3258fc95b99a8efa7898671f210513d3caad67f3 /Xtranssock.c | |
parent | 56ec4a08fa0d1843c858a9a17f4d1fa1a4def264 (diff) |
Fix snprintf() argument order.
Diffstat (limited to 'Xtranssock.c')
-rw-r--r-- | Xtranssock.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 |