[master] 5060e91 Don't point to the last character, when the complaint is that more characters are necessary.
Poul-Henning Kamp
phk at FreeBSD.org
Fri Apr 28 12:02:06 CEST 2017
commit 5060e9103c56c3dee2db3e2def0340f65aab2f93
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Fri Apr 28 08:18:55 2017 +0000
Don't point to the last character, when the complaint is that
more characters are necessary.
diff --git a/lib/libvarnishapi/vxp_lexer.c b/lib/libvarnishapi/vxp_lexer.c
index ee616a9..d858d40 100644
--- a/lib/libvarnishapi/vxp_lexer.c
+++ b/lib/libvarnishapi/vxp_lexer.c
@@ -141,7 +141,7 @@ vxp_Lexer(struct vxp *vxp)
vxp_add_token(vxp, VAL, p, q);
if (quote != '\0') {
VSB_printf(vxp->sb, "Unterminated string ");
- vxp_ErrWhere(vxp, vxp->t, q - p - 1);
+ vxp_ErrWhere(vxp, vxp->t, q - p);
return;
}
if (vxp_decstr(vxp, 1))
More information about the varnish-commit
mailing list