diff --git a/noice.c b/noice.c index 4d032d37..6b04d4e0 100644 --- a/noice.c +++ b/noice.c @@ -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));