mirror of
https://github.com/jarun/nnn.git
synced 2025-01-15 21:36:42 +00:00
Fix length calculation
This commit is contained in:
parent
d4c3e52f2f
commit
608fbb4ad7
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue