소스 검색
Fix crash while writing selection to file
master
Arun Prakash Jana
6 년 전
No known key found for this signature in database
GPG 키 ID: A75979F35C080412
1개의 변경된 파일과
1개의 추가작업 그리고
1개의 파일을 삭제
-
src/nnn.c
|
|
@@ -818,7 +818,7 @@ static ssize_t selectiontofd(int fd) |
|
|
|
if (pos <= lastpos) { |
|
|
|
if (write(fd, "\n", 1) != 1) |
|
|
|
return pos; |
|
|
|
pbuf += pos + 1; |
|
|
|
pbuf += len + 1; |
|
|
|
} |
|
|
|
++pos; |
|
|
|
} |
|
|
|