diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | debug.c | 4 |
2 files changed, 8 insertions, 2 deletions
@@ -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 @@ -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 { |