From 0c5ca1f312ed626eff000f507751f6558c8d2c26 Mon Sep 17 00:00:00 2001 From: owen Date: Sat, 29 Jan 2005 22:50:18 +0000 Subject: [PATCH] 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. git-svn-id: svn://svn.tartarus.org/sgt/putty@5228 cda61777-01e9-0310-a592-d414129be87e --- x11fwd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x11fwd.c b/x11fwd.c index c912e448..53cec5f9 100644 --- a/x11fwd.c +++ b/x11fwd.c @@ -491,7 +491,7 @@ int x11_send(Socket s, char *data, int len) memcpy(realauthdata, pr->auth->realdata, realauthlen); } else if (pr->auth->realproto == X11_XDM && pr->auth->reallen == 16 && - (buf = sk_getxdmdata(s, &buflen))) { + ((buf = sk_getxdmdata(s, &buflen))!=0)) { time_t t; realauthlen = (buflen+12+7) & ~7; assert(realauthlen <= lenof(realauthdata)); -- 2.11.0