diff options
author | Thorsten Lockert <tholo@cvs.openbsd.org> | 1997-02-01 12:03:08 +0000 |
---|---|---|
committer | Thorsten Lockert <tholo@cvs.openbsd.org> | 1997-02-01 12:03:08 +0000 |
commit | 58840bb2e4ebf18c140e13f5e5a7e880e3a83a89 (patch) | |
tree | edee19715b298b85bbceed12b048bbae3d6de076 /bin | |
parent | 595dd335893d246bb8a7f18605972d1a426cf870 (diff) |
Get precedence right
Diffstat (limited to 'bin')
-rw-r--r-- | bin/ed/io.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/ed/io.c b/bin/ed/io.c index c9e2ce12f82..a40e76c59b4 100644 --- a/bin/ed/io.c +++ b/bin/ed/io.c @@ -1,4 +1,4 @@ -/* $OpenBSD: io.c,v 1.6 1996/12/14 12:17:54 mickey Exp $ */ +/* $OpenBSD: io.c,v 1.7 1997/02/01 12:03:07 tholo Exp $ */ /* $NetBSD: io.c,v 1.2 1995/03/21 09:04:43 cgd Exp $ */ /* io.c: This file contains the i/o routines for the ed line editor */ @@ -32,7 +32,7 @@ #if 0 static char *rcsid = "@(#)io.c,v 1.1 1994/02/01 00:34:41 alm Exp"; #else -static char rcsid[] = "$OpenBSD: io.c,v 1.6 1996/12/14 12:17:54 mickey Exp $"; +static char rcsid[] = "$OpenBSD: io.c,v 1.7 1997/02/01 12:03:07 tholo Exp $"; #endif #endif /* not lint */ @@ -134,7 +134,7 @@ get_stream_line(fp) register int i = 0; while (((c = des ? get_des_char(fp) : getc(fp)) != EOF || (!feof(fp) && - !ferror(fp) && c != '\n'))) { + !ferror(fp))) && c != '\n') { REALLOC(sbuf, sbufsz, i + 1, ERR); if (!(sbuf[i++] = c)) isbinary = 1; |