mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-14 17:47:33 -05:00
When giving authorisation errors from the proxy code in x11fwd.c,
name the proxy using the global 'appname' variable, instead of statically calling it PuTTY. (Knock-on effect is that PSCP and PSFTP have to declare that variable, though of course they shouldn't ever actually _use_ the X forwarding code. Probably I ought to replace it with a stub nox11fwd.c for those applications.) [originally from svn r8501]
This commit is contained in:
2
x11fwd.c
2
x11fwd.c
@ -712,7 +712,7 @@ int x11_send(Socket s, char *data, int len)
|
||||
int msglen, msgsize;
|
||||
unsigned char *reply;
|
||||
|
||||
message = dupprintf("PuTTY X11 proxy: %s", err);
|
||||
message = dupprintf("%s X11 proxy: %s", appname, err);
|
||||
msglen = strlen(message);
|
||||
reply = snewn(8 + msglen+1 + 4, unsigned char); /* include zero */
|
||||
msgsize = (msglen + 3) & ~3;
|
||||
|
Reference in New Issue
Block a user