From 771bfa46b430c95d667608c0449788606e78495d Mon Sep 17 00:00:00 2001 From: phk Date: Fri, 12 Sep 2008 09:39:35 +0000 Subject: [PATCH] Don't allocate space for a %u and then stick a %d in it. Tripped by: anordby git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3183 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-cache/bin/varnishd/cache_vrt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/varnish-cache/bin/varnishd/cache_vrt.c b/varnish-cache/bin/varnishd/cache_vrt.c index 5dedccff..891106a6 100644 --- a/varnish-cache/bin/varnishd/cache_vrt.c +++ b/varnish-cache/bin/varnishd/cache_vrt.c @@ -480,7 +480,7 @@ VRT_r_req_xid(struct sess *sp) size = snprintf(NULL, 0, "%u", sp->xid) + 1; AN(p = WS_Alloc(sp->http->ws, size)); - assert(snprintf(p, size, "%d", sp->xid) < size); + assert(snprintf(p, size, "%u", sp->xid) < size); return (p); } -- 2.39.5