Return to tgetpass.c CVS log | Up to [local] / src / usr.bin / sudo |
version 1.3, 2000/01/24 04:22:53 | version 1.4, 2000/02/27 03:25:14 | ||
---|---|---|---|
|
|
||
free(readfds); | free(readfds); | ||
} else { | } else { | ||
/* Keep reading until out of space, EOF, error, or newline */ | /* Keep reading until out of space, EOF, error, or newline */ | ||
while (--left && (n = read(fd, &c, 1)) == 1 && (c != '\n' || c != '\r')) | while (--left && (n = read(fd, &c, 1)) == 1 && c != '\n' && c != '\r') | ||
*cp++ = c; | *cp++ = c; | ||
} | } | ||
*cp = '\0'; | *cp = '\0'; |