From b5d1a1b0368a3b3e12766bd6150ef6182e283555 Mon Sep 17 00:00:00 2001 From: KlzXS Date: Sun, 11 Jul 2021 20:16:28 +0200 Subject: [PATCH] Use selbufpos instead of selbuflen --- src/nnn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { /* -- 2.48.1