Commit afb0827a authored by Poul-Henning Kamp's avatar Poul-Henning Kamp Committed by Tollef Fog Heen

Fix an off-by-one in an error message

parent 26b45090
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment