]> err.no Git - varnish/commitdiff
Fix ticket #179: non-ascii reason-phrase.
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Wed, 16 Jan 2008 10:08:34 +0000 (10:08 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Wed, 16 Jan 2008 10:08:34 +0000 (10:08 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2345 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/cache_http.c

index 771be806bb0910362ba5f5280f7e61d8977f98d9..6d1b0e3bed9e8f2c62f6ec91bd3eb98dde9f0d42 100644 (file)
@@ -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