Fix strlcpy() size argument - noice - small file browser (mirror / fork from 2f30.org)
 (HTM) git clone git://git.codemadness.org/noice
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 81ec2605165985c4e53800a6707469227b9335a2
 (DIR) parent 13c0aef16377a3a6b9a0d48baee33f91e9c8437e
 (HTM) Author: sin <sin@2f30.org>
       Date:   Fri, 19 Feb 2016 13:40:44 +0000
       
       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:
         M noice.c                             |       2 +-
       
       1 file changed, 1 insertion(+), 1 deletion(-)
       ---
 (DIR) diff --git 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));