aboutsummaryrefslogtreecommitdiffstats
path: root/noice.c
diff options
context:
space:
mode:
authorsin <sin@2f30.org>2016-02-19 13:40:44 +0000
committersin <sin@2f30.org>2016-02-19 13:40:44 +0000
commit81ec2605165985c4e53800a6707469227b9335a2 (patch)
tree675b1255df24716447074e464383624f36bcdf40 /noice.c
parent13c0aef16377a3a6b9a0d48baee33f91e9c8437e (diff)
downloadnoice-81ec2605165985c4e53800a6707469227b9335a2.tar.gz
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.
Diffstat (limited to 'noice.c')
-rw-r--r--noice.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/noice.c b/noice.c
index 4d032d3..6b04d4e 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));
Un proyecto texto-plano.xyz