From e7edc6e7ba2671bf39b1431d371d0e9d0c24e8f0 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Wed, 23 Jan 2019 20:44:46 +0000 Subject: [PATCH] Uppity: fix an unterminated dupcat in X server setup. Address Sanitiser pointed this out; I surely can't have run Uppity under ASan before, or I'd have noticed this months ago. --- unix/ux_x11.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unix/ux_x11.c b/unix/ux_x11.c index 16acbab4..d8dfd635 100644 --- a/unix/ux_x11.c +++ b/unix/ux_x11.c @@ -128,7 +128,7 @@ int platform_make_x11_server(Plug *plug, const char *progname, int mindisp, if (!tmpdir || !*tmpdir) tmpdir = "/tmp"; - authfilename = dupcat(tmpdir, "/", progname, "-Xauthority-XXXXXX"); + authfilename = dupcat(tmpdir, "/", progname, "-Xauthority-XXXXXX", NULL); { int oldumask = umask(077);