Changeset - 5e822fe9c265
[Not reviewed]
0 1 0
Vitaly Takmazov - 14 years ago 2011-10-21 08:13:46
vitalyster@gmail.com
fixed dfrotz target
1 file changed with 5 insertions and 2 deletions:
0 comments (0 inline, 0 general)
backends/frotz/dfrotz/dumb/dumb_input.c
Show inline comments
 
@@ -78,15 +78,18 @@ static int xgetchar(void)
 

	
 
/* Read one line, including the newline, into s.  Safely avoids buffer
 
 * overruns (but that's kind of pointless because there are several
 
 * 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';
 
      return;
 
    }
 
  p[-1] = '\n';
0 comments (0 inline, 0 general)