mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-04-19 03:58:05 -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:
parent
f8f96a2fec
commit
e7edc6e7ba
@ -128,7 +128,7 @@ int platform_make_x11_server(Plug *plug, const char *progname, int mindisp,
|
|||||||
if (!tmpdir || !*tmpdir)
|
if (!tmpdir || !*tmpdir)
|
||||||
tmpdir = "/tmp";
|
tmpdir = "/tmp";
|
||||||
|
|
||||||
authfilename = dupcat(tmpdir, "/", progname, "-Xauthority-XXXXXX");
|
authfilename = dupcat(tmpdir, "/", progname, "-Xauthority-XXXXXX", NULL);
|
||||||
|
|
||||||
{
|
{
|
||||||
int oldumask = umask(077);
|
int oldumask = umask(077);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user