aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--debug.c4
2 files changed, 8 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 16ae01ea..eb06ad7d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2017-08-18 Arnold D. Robbins <arnold@skeeve.com>
+
+ * debug.c (do_set_var): Fix typos in error messages.
+ Thanks to Jean-Philippe Guerard
+ <jean-philippe.guerard@xn--tigreray-i1a.org> for the report.
+
2017-08-17 Arnold D. Robbins <arnold@skeeve.com>
* field.c (rebuild_record): Set new fields valref to 1 if
diff --git a/debug.c b/debug.c
index efb8c02e..9a022669 100644
--- a/debug.c
+++ b/debug.c
@@ -1255,7 +1255,7 @@ do_set_var(CMDARG *arg, int cmd ATTRIBUTE_UNUSED)
if (count == 1) {
if (value != NULL && value->type == Node_var_array)
- d_error(_("attempt to use array `%s[\".*%s\"]' in a scalar context"),
+ d_error(_("attempt to use array `%s[\"%.*s\"]' in a scalar context"),
name, (int) subs->stlen, subs->stptr);
else {
arg = arg->next;
@@ -1277,7 +1277,7 @@ do_set_var(CMDARG *arg, int cmd ATTRIBUTE_UNUSED)
*lhs = array;
r = array;
} else if (value->type != Node_var_array) {
- d_error(_("attempt to use scalar `%s[\".*%s\"]' as array"),
+ d_error(_("attempt to use scalar `%s[\"%.*s\"]' as array"),
name, (int) subs->stlen, subs->stptr);
break;
} else {