diff options
Diffstat (limited to 'lib/libI77/iio.c')
-rw-r--r-- | lib/libI77/iio.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/libI77/iio.c b/lib/libI77/iio.c index b747826..4c8eb9d 100644 --- a/lib/libI77/iio.c +++ b/lib/libI77/iio.c @@ -10,7 +10,7 @@ z_getc(Void) { if(f__recpos++ < f__svic->icirlen) { if(f__icptr >= f__icend) err(f__svic->iciend,(EOF),"endfile"); - return(*f__icptr++); + return(*(unsigned char *)f__icptr++); } return '\n'; } @@ -95,6 +95,10 @@ integer s_rsfi(icilist *a) z_wnew(Void) { + if (f__recpos < f__hiwater) { + f__icptr += f__hiwater - f__recpos; + f__recpos = f__hiwater; + } while(f__recpos++ < f__svic->icirlen) *f__icptr++ = ' '; f__recpos = 0; |