]> Sergey Matveev's repositories - nnn.git/commitdiff
Use selbufpos instead of selbuflen
authorKlzXS <klzx+github@klzx.cf>
Sun, 11 Jul 2021 18:16:28 +0000 (20:16 +0200)
committerKlzXS <klzx+github@klzx.cf>
Sun, 11 Jul 2021 18:16:28 +0000 (20:16 +0200)
src/nnn.c

index 4d9a60bb55e40acea39320f529de918e9eb18ebd..3df950005e9a987a3a442f1c5067cb47f315aae8 100644 (file)
--- 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) {
                /*