1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-04-10 15:48:06 -05:00

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.
This commit is contained in:
Simon Tatham 2019-01-23 20:44:46 +00:00
parent f8f96a2fec
commit e7edc6e7ba

View File

@ -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);