Commit 5060e910 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Don't point to the last character, when the complaint is that

more characters are necessary.
parent d27e9083
...@@ -141,7 +141,7 @@ vxp_Lexer(struct vxp *vxp) ...@@ -141,7 +141,7 @@ vxp_Lexer(struct vxp *vxp)
vxp_add_token(vxp, VAL, p, q); vxp_add_token(vxp, VAL, p, q);
if (quote != '\0') { if (quote != '\0') {
VSB_printf(vxp->sb, "Unterminated string "); VSB_printf(vxp->sb, "Unterminated string ");
vxp_ErrWhere(vxp, vxp->t, q - p - 1); vxp_ErrWhere(vxp, vxp->t, q - p);
return; return;
} }
if (vxp_decstr(vxp, 1)) if (vxp_decstr(vxp, 1))
......
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