stream; this matches the manual page
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3617
35c25a1d-7b9e-4130-9fde-
d3aeb78583b8
- Unconditionally blank the statusbar as soon as we're finished
getting input. (DLR, suggested by Benno Schulenberg)
- utils.c:
+ ngetdelim()
+ - Set errno to EINVAL if stream is not a valid file stream.
+ This matches the manual page. (DLR)
nperror()
- Simplify. (DLR)
- winio.c:
int c;
/* Sanity checks. */
- if (lineptr == NULL || n == NULL || stream == NULL) {
+ if (lineptr == NULL || n == NULL || stream == NULL ||
+ fileno(stream) == -1) {
errno = EINVAL;
return -1;
}