changeset 50138:75ed0f4a2f18

(read1): After #!, exit loop on eof.
author Richard M. Stallman <rms@gnu.org>
date Fri, 14 Mar 2003 23:04:57 +0000
parents b9209df48d29
children d2526c7c1f0d
files src/lread.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/lread.c	Fri Mar 14 22:38:46 2003 +0000
+++ b/src/lread.c	Fri Mar 14 23:04:57 2003 +0000
@@ -2127,7 +2127,7 @@
 	{
 	  /* #! appears at the beginning of an executable file.
 	     Skip the first line.  */
-	  while (c != '\n')
+	  while (c != '\n' && c >= 0)
 	    c = READCHAR;
 	  goto retry;
 	}