---
sort.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/sort.c b/sort.c
index fbb1abf..99376ca 100644
--- a/sort.c
+++ b/sort.c
_AT_@ -126,6 +126,7 @@ columns(struct line *line, const struct keydef *kd, struct column *col)
if (!(col->line.data) || col->cap < col->line.len + 1) {
free(col->line.data);
col->line.data = emalloc(col->line.len + 1);
+ col->cap = col->line.len + 1;
}
memcpy(col->line.data, start.data, col->line.len);
col->line.data[col->line.len] = '\0';
--
2.47.2
Received on Fri Aug 29 2025 - 19:20:35 CEST
This archive was generated by hypermail 2.3.0 : Fri Aug 29 2025 - 19:24:35 CEST