diff options
author | Jean-Marc Zucconi <jmz@FreeBSD.org> | 1995-09-28 20:49:15 +0000 |
---|---|---|
committer | Jean-Marc Zucconi <jmz@FreeBSD.org> | 1995-09-28 20:49:15 +0000 |
commit | f310327a5b2374c9442f9d4b0bf28a81f9d4c8eb (patch) | |
tree | 2bd4eef14755fc92c0ed2b2ea8abefe3c3081747 /lib/libI77/rsfe.c | |
parent | c28f85011857a5a0a93b4eb62175c7e506ca1d0b (diff) | |
download | src-f310327a5b2374c9442f9d4b0bf28a81f9d4c8eb.tar.gz src-f310327a5b2374c9442f9d4b0bf28a81f9d4c8eb.zip |
Notes
Diffstat (limited to 'lib/libI77/rsfe.c')
-rw-r--r-- | lib/libI77/rsfe.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/libI77/rsfe.c b/lib/libI77/rsfe.c index 5d29bee6847e..5ff0a338b2f7 100644 --- a/lib/libI77/rsfe.c +++ b/lib/libI77/rsfe.c @@ -6,7 +6,11 @@ xrd_SL(Void) { int ch; if(!f__curunit->uend) - while((ch=getc(f__cf))!='\n' && ch!=EOF); + while((ch=getc(f__cf))!='\n') + if (ch == EOF) { + f__curunit->uend = 1; + break; + } f__cursor=f__recpos=0; return(1); } @@ -69,5 +73,7 @@ integer s_rsfe(cilist *a) /* start */ f__cplus=0; if(f__curunit->uwrt && f__nowreading(f__curunit)) err(a->cierr,errno,"read start"); + if(f__curunit->uend) + err(f__elist->ciend,(EOF),"read start"); return(0); } |