Correct an undefined pointer dereference

This commit is contained in:
Ben RUBSON 2017-10-11 07:52:15 +02:00 committed by GitHub
parent 437c2b33ea
commit 07f64d9e21

View File

@ -143,8 +143,8 @@ restart:
*p++ = ch;
}
}
}
*p = '\0';
}
save_errno = errno;
if ((term.c_lflag & ECHO) == 0u) {
if(write(output, "\n", 1) != -1) {