소스 검색

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


불러오는 중...
취소
저장