nnn

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 608fbb4ad75d9d1868f06a4cd849b48abd77d6e7
parent d4c3e52f2f555d9960bdb59681ea6c7978ff3b03
Author: Arun Prakash Jana <engineerarun@gmail.com>
Date:   Sun, 11 Dec 2022 02:53:34 +0530

Fix length calculation

Diffstat:
Msrc/nnn.c | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/nnn.c b/src/nnn.c @@ -8573,8 +8573,10 @@ int main(int argc, char *argv[]) DPRINTF_S(arg); size_t len = xstrlen(arg); - if (len > 7 && is_prefix(arg, "file://", 7)) + if (len > 7 && is_prefix(arg, "file://", 7)) { arg = arg + 7; + len -= 7; + } initpath = abspath(arg, NULL, NULL); DPRINTF_S(initpath); if (!initpath) {