浏览代码

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.
master
sin 9 年前
父节点
当前提交
81ec260516
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      noice.c

+ 1
- 1
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));


正在加载...
取消
保存