From: KlzXS Date: Sun, 11 Jul 2021 18:16:28 +0000 (+0200) Subject: Use selbufpos instead of selbuflen X-Git-Tag: v4.2~33^2 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=b5d1a1b0368a3b3e12766bd6150ef6182e283555;p=nnn.git Use selbufpos instead of selbuflen --- diff --git a/src/nnn.c b/src/nnn.c index 4d9a60bb..3df95000 100644 --- a/src/nnn.c +++ b/src/nnn.c @@ -1540,7 +1540,7 @@ static char *findinsel(char *startpos, int len) startpos = pselbuf; char *found = startpos; - size_t buflen = selbuflen - (startpos - pselbuf); + size_t buflen = selbufpos - (startpos - pselbuf); while (1) { /*