1
0
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:
Owen Dunn 2005-01-29 22:50:18 +00:00
parent 72cce92fa7
commit a057db9fee

View File

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