Browse Source

Fix crash while writing selection to file

master
Arun Prakash Jana 6 years ago
parent
commit
b7666a8d5c
No known key found for this signature in database GPG Key ID: A75979F35C080412
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/nnn.c

+ 1
- 1
src/nnn.c View File

@@ -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;
}


Loading…
Cancel
Save