mirror of
https://github.com/jarun/nnn.git
synced 2024-11-24 20:01:27 +00:00
Fix strlcpy() size argument
It should be the size of the destination buffer, not the source. In this case, both src and dest have the same size.
This commit is contained in:
parent
13c0aef163
commit
81ec260516
2
noice.c
2
noice.c
|
@ -598,7 +598,7 @@ nochange:
|
||||||
goto nochange;
|
goto nochange;
|
||||||
}
|
}
|
||||||
/* Save history */
|
/* Save history */
|
||||||
strlcpy(oldpath, path, sizeof(path));
|
strlcpy(oldpath, path, sizeof(oldpath));
|
||||||
strlcpy(path, dir, sizeof(path));
|
strlcpy(path, dir, sizeof(path));
|
||||||
/* Reset filter */
|
/* Reset filter */
|
||||||
strlcpy(fltr, ifilter, sizeof(fltr));
|
strlcpy(fltr, ifilter, sizeof(fltr));
|
||||||
|
|
Loading…
Reference in a new issue