diff --git a/correct.c b/correct.c index 9cadde2..04b0d38 100644 --- a/correct.c +++ b/correct.c @@ -187,8 +187,8 @@ static size_t correct_alteration(const char *ident, char **array, size_t index) false ), correct_strndup ( - ident+itr+1, - len - (itr + 1) + ident + (itr+1), + len - (itr+1) ), true ); @@ -285,6 +285,8 @@ static char **correct_known(ht table, char **array, size_t rows, size_t *next) { res[len++] = end[jtr]; } } + + mem_d(end); } *next = len;