fixed dfrotz on windows

This commit is contained in:
HanzZ 2011-10-21 10:27:00 +02:00
parent 25642926dd
commit c176163b66

View file

@ -81,9 +81,10 @@ 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';