From: phk Date: Wed, 16 Jan 2008 10:08:34 +0000 (+0000) Subject: Fix ticket #179: non-ascii reason-phrase. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3898d6d9580a4921e270f8a1c1a35a9b90d0a823;p=varnish Fix ticket #179: non-ascii reason-phrase. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2345 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishd/cache_http.c b/varnish-cache/bin/varnishd/cache_http.c index 771be806..6d1b0e3b 100644 --- a/varnish-cache/bin/varnishd/cache_http.c +++ b/varnish-cache/bin/varnishd/cache_http.c @@ -64,7 +64,7 @@ static unsigned char vctyptab[256] = { [' '] = C_SP, }; -#define vctyp(x, y) (vctyptab[(int)(x)] & (y)) +#define vctyp(x, y) (vctyptab[(unsigned)(x) & 0xff] & (y)) #define LOGMTX2(ax, bx, cx) [bx] = SLT_##ax##cx