[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: MiNT library PL46 patches



lux@heidelbg.ibm.com (Wolfgang Lux) writes:

|> diff -u -xChangeLog -xMakefile /usr/src/libsrc/getpass.c ./getpass.c
|> --- /usr/src/libsrc/getpass.c	Tue Mar 14 21:01:08 1995
|> +++ ./getpass.c	Thu Apr 13 22:52:16 1995
[...]
|> +	  l = strlen(buf);
|> +	  if (buf[l-1] != '\n') {
|> +	    while (fgetc(tty) != '\n')
|> +	      /* wait for a newline */ ;
|> +	  }

Another Problem: this should check for EOF!  Otherwise you'll get an
infinite loop.

-- 
Andreas Schwab                                      "And now for something
schwab@issan.informatik.uni-dortmund.de              completely different"