[3.0] afb0827 Fix an off-by-one in an error message
Tollef Fog Heen
tfheen at varnish-cache.org
Mon Apr 22 13:27:01 CEST 2013
commit afb0827a711c2b760c6f0cef94cb03b08794748a
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 655ee63..4897426 100644
--- a/lib/libvcl/vcc_backend.c
+++ b/lib/libvcl/vcc_backend.c
@@ -651,7 +651,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