* ioext.c (scm_ftell): Use SCM_N_READY_CHARS to correct position.
authorMikael Djurfeldt <djurfeldt@nada.kth.se>
Fri, 30 Oct 1998 08:24:23 +0000 (08:24 +0000)
committerMikael Djurfeldt <djurfeldt@nada.kth.se>
Fri, 30 Oct 1998 08:24:23 +0000 (08:24 +0000)
libguile/ioext.c

index c18866a..73de33f 100644 (file)
@@ -213,7 +213,7 @@ scm_ftell (object)
     {
       SCM_SYSCALL (pos = ftell ((FILE *)SCM_STREAM (object)));
       if (pos > 0 && SCM_CRDYP (object))
-       pos--;
+       pos -= SCM_N_READY_CHARS (object);
     }
   else
     {