patch-fcbanner_c 380 B

12345678910111213
  1. $OpenBSD: patch-fcbanner_c,v 1.1.1.1 2009/05/11 15:50:35 sthen Exp $
  2. --- fcbanner.c.orig Mon May 11 12:48:33 2009
  3. +++ fcbanner.c Mon May 11 12:55:48 2009
  4. @@ -402,7 +402,7 @@ main(int argc, char **argv)
  5. } else {
  6. wint_t c;
  7. - while((c = fgetwc(stdin)) != WEOF) {
  8. + while(((c = fgetwc(stdin)) != EOF) && c != '\004' ) { /* ^D */
  9. if(c == L'\n')
  10. newline();
  11. else