fixed dfrotz target

This commit is contained in:
Vitaly Takmazov 2011-10-21 10:13:46 +04:00
parent a7e0776cb3
commit 5e822fe9c2

View file

@ -81,9 +81,12 @@ static int xgetchar(void)
* other places where I'm not so careful). */
static void getline_(char *s)
{
fflush(stdout);
int c;
char *p = s;
char *p;
fflush(stdout);
p = s;
while (p < s + INPUT_BUFFER_SIZE - 1)
if ((*p++ = xgetchar()) == '\n') {
*p = '\0';