From fbd69320347e38acd7269393604e31780e4963b3 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Wed, 25 Aug 2021 16:55:43 +0000 Subject: bugfix: "" usage in multidefine -r Signed-off-by: Laurent Bercot --- src/libexecline/exlsn_multidefine.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libexecline/exlsn_multidefine.c b/src/libexecline/exlsn_multidefine.c index 9108810..dfb7ab1 100644 --- a/src/libexecline/exlsn_multidefine.c +++ b/src/libexecline/exlsn_multidefine.c @@ -65,7 +65,7 @@ int exlsn_multidefine (int argc, char const **argv, char const *const *envp, exl } if (i < max) pos += strlen(info->values.s + pos) + 1 ; } - if ((i < max) && likeread) genalloc_s(elsubst_t, &info->data)[i-1].n = max - i + 1 ; + if ((i < max) && likeread) genalloc_s(elsubst_t, &info->data)[genalloc_len(elsubst_t, &info->data) - 1].n = max - i + 1 ; (void)envp ; return localopt.ind + argc1 + 2 ; -- cgit v1.3.1