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:
sin 2016-02-19 13:40:44 +00:00
parent 13c0aef163
commit 81ec260516
1 changed files with 1 additions and 1 deletions

View File

@ -598,7 +598,7 @@ nochange:
goto nochange;
}
/* Save history */
strlcpy(oldpath, path, sizeof(path));
strlcpy(oldpath, path, sizeof(oldpath));
strlcpy(path, dir, sizeof(path));
/* Reset filter */
strlcpy(fltr, ifilter, sizeof(fltr));