nnn

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit b7666a8d5c9aff8d43f57e58d106acf2611b65ff
parent 94725466a4605dc05b2ada63b8506a5d4940aed2
Author: Arun Prakash Jana <engineerarun@gmail.com>
Date:   Wed, 30 Jan 2019 02:18:12 +0530

Fix crash while writing selection to file

Diffstat:
Msrc/nnn.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/nnn.c b/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; }