sbase

suckless unix tools
git clone git://git.suckless.org/sbase
Log | Files | Refs | README | LICENSE

commit 57c9cab8496efa6088998fc84d45a7340ed215fa
parent 60895834f011acb7ec3d6ef6e35f2daa23007ff9
Author: Richard Ipsum <richardipsum@vx21.xyz>
Date:   Tue, 31 Dec 2019 19:51:00 +0000

sort: Fix string length update math

Diffstat:
Msort.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sort.c b/sort.c @@ -68,8 +68,8 @@ skipcolumn(struct line *a, int skip_to_next_col) if ((s = memmem(a->data, a->len, fieldsep, fieldseplen))) { if (skip_to_next_col) { s += fieldseplen; + a->len -= s - a->data; a->data = s; - a->len = a->len - (s - a->data); } } else { a->data += a->len - 1;