mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-06-30 19:12:48 -05:00
Make x11_get_auth_from_authfile take a Filename.
I think the only reason it currently takes a plain string is because its interesting caller (in unix/x11.c) has just constructed a string out of an environment variable, and it seemed like the path of least effort not to bother wrapping it into a proper Filename. But when Filename on Windows becomes more interesting, we'll need it to take the full version.
This commit is contained in:
@ -33,9 +33,12 @@ void platform_get_x11_auth(struct X11Display *disp, Conf *conf)
|
||||
}
|
||||
|
||||
if (xauthfile) {
|
||||
x11_get_auth_from_authfile(disp, xauthfile);
|
||||
Filename *xauthfn = filename_from_str(xauthfile);
|
||||
if (needs_free)
|
||||
sfree(xauthfile);
|
||||
|
||||
x11_get_auth_from_authfile(disp, xauthfn);
|
||||
filename_free(xauthfn);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user