diff options
-rw-r--r-- | src/libexecline/exlsn_multidefine.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 ; |