summaryrefslogtreecommitdiff
path: root/usr.bin/sed/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/sed/main.c')
-rw-r--r--usr.bin/sed/main.c21
1 files changed, 11 insertions, 10 deletions
diff --git a/usr.bin/sed/main.c b/usr.bin/sed/main.c
index f4fc96f7026ad..276ff4c59007a 100644
--- a/usr.bin/sed/main.c
+++ b/usr.bin/sed/main.c
@@ -1,7 +1,7 @@
/*-
* Copyright (c) 1992 Diomidis Spinellis.
- * Copyright (c) 1992 The Regents of the University of California.
- * All rights reserved.
+ * Copyright (c) 1992, 1993
+ * The Regents of the University of California. All rights reserved.
*
* This code is derived from software contributed to Berkeley by
* Diomidis Spinellis of Imperial College, University of London.
@@ -36,13 +36,14 @@
*/
#ifndef lint
-char copyright[] =
-"@(#) Copyright (c) 1992 The Regents of the University of California.\n\
- All rights reserved.\n";
+static char copyright[] =
+"@(#) Copyright (c) 1992, 1993\n\
+ The Regents of the University of California. All rights reserved.\n";
#endif /* not lint */
#ifndef lint
-static char sccsid[] = "@(#)main.c 5.6 (Berkeley) 8/30/92";
+/* from: static char sccsid[] = "@(#)main.c 8.2 (Berkeley) 1/3/94"; */
+static char *rcsid = "$Id: main.c,v 1.2 1994/04/17 09:41:44 alm Exp $";
#endif /* not lint */
#include <sys/types.h>
@@ -286,11 +287,11 @@ mf_fgets(sp, spflag)
}
/*
- * Use fgetline so that we can handle essentially infinite input
- * data. Can't use the pointer into the stdio buffer as the process
- * space because the ungetc() can cause it to move.
+ * Use fgetln so that we can handle essentially infinite input data.
+ * Can't use the pointer into the stdio buffer as the process space
+ * because the ungetc() can cause it to move.
*/
- p = fgetline(f, &len);
+ p = fgetln(f, &len);
if (ferror(f))
err(FATAL, "%s: %s", fname, strerror(errno ? errno : EIO));
cspace(sp, p, len, spflag);