mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-10 09:58:01 +00:00
Another compiler pickiness. It feels wrong to be doing this to
perfectly idiomatic code, somehow, and I half wonder whether the Mac compilers are too stupid to be allowed to treat warnings as errors. [originally from svn r5228]
This commit is contained in:
parent
72cce92fa7
commit
a057db9fee
2
x11fwd.c
2
x11fwd.c
@ -491,7 +491,7 @@ int x11_send(Socket s, char *data, int len)
|
|||||||
memcpy(realauthdata, pr->auth->realdata, realauthlen);
|
memcpy(realauthdata, pr->auth->realdata, realauthlen);
|
||||||
} else if (pr->auth->realproto == X11_XDM &&
|
} else if (pr->auth->realproto == X11_XDM &&
|
||||||
pr->auth->reallen == 16 &&
|
pr->auth->reallen == 16 &&
|
||||||
(buf = sk_getxdmdata(s, &buflen))) {
|
((buf = sk_getxdmdata(s, &buflen))!=0)) {
|
||||||
time_t t;
|
time_t t;
|
||||||
realauthlen = (buflen+12+7) & ~7;
|
realauthlen = (buflen+12+7) & ~7;
|
||||||
assert(realauthlen <= lenof(realauthdata));
|
assert(realauthlen <= lenof(realauthdata));
|
||||||
|
Loading…
Reference in New Issue
Block a user