--- gforth/engine/support.c 2009/01/29 19:51:27 1.39 +++ gforth/engine/support.c 2009/06/29 20:21:28 1.40 @@ -313,7 +313,7 @@ Cell rename_file(Char *c_addr1, UCell u1 return IOR(rename(tilde_cstr(c_addr1, u1, 0), s1)==-1); } -struct Cellquad read_line(Char *c_addr, UCell u1, Cell wfileid) +struct Cellquad read_line(Char *c_addr, UCell u1, FILE *wfileid) { UCell u2, u3; Cell flag, wior; @@ -322,13 +322,15 @@ struct Cellquad read_line(Char *c_addr, flag=-1; u3=0; + if (u1>0) + gf_regetc(wfileid); for(u2=0; u2