diff src/lstream.c @ 274:ca9a9ec9c1c1 r21-0b35

Import from CVS: tag r21-0b35
author cvs
date Mon, 13 Aug 2007 10:29:42 +0200
parents c5d627a313b1
children 8626e4521993
line wrap: on
line diff
--- a/src/lstream.c	Mon Aug 13 10:28:54 2007 +0200
+++ b/src/lstream.c	Mon Aug 13 10:29:42 2007 +0200
@@ -899,7 +899,7 @@
   fstr->blocking_error_p = 0;
   fstr->chars_sans_newline = 0;
   fstr->starting_pos = lseek (filedesc, offset, SEEK_CUR);
-  fstr->current_pos = max (fstr->current_pos, 0);
+  fstr->current_pos = max (fstr->starting_pos, 0);
   if (count < 0)
     fstr->end_pos = -1;
   else