[master] 574e757 Fix an off-by-one in an error message
Poul-Henning Kamp
phk at varnish-cache.org
Thu Oct 25 10:34:51 CEST 2012
commit 574e757006f9eb4238c85de6aa8029949141f99c
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Thu Oct 25 08:30:29 2012 +0000
Fix an off-by-one in an error message
diff --git a/lib/libvcl/vcc_backend.c b/lib/libvcl/vcc_backend.c
index 319eef1..78cb0b2 100644
--- a/lib/libvcl/vcc_backend.c
+++ b/lib/libvcl/vcc_backend.c
@@ -644,7 +644,7 @@ vcc_DefBackend(struct vcc *tl, const struct token *nm)
sym = VCC_GetSymbolTok(tl, nm, SYM_BACKEND);
AN(sym);
if (sym->ndef > 0) {
- VSB_printf(tl->sb, "Backend %.*s redefined\n", PF(tl->t));
+ VSB_printf(tl->sb, "Backend %.*s redefined\n", PF(nm));
vcc_ErrWhere(tl, nm);
return;
}
More information about the varnish-commit
mailing list