about summary refs log tree commit diff
path: root/libio/ioftell.c
diff options
context:
space:
mode:
Diffstat (limited to 'libio/ioftell.c')
-rw-r--r--libio/ioftell.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libio/ioftell.c b/libio/ioftell.c
index e8b6c7a444..fa43b489ec 100644
--- a/libio/ioftell.c
+++ b/libio/ioftell.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1993, 95, 96, 97, 98, 99 Free Software Foundation, Inc.
+/* Copyright (C) 1993, 95, 96, 97, 98, 99, 2000 Free Software Foundation, Inc.
    This file is part of the GNU IO Library.
 
    This library is free software; you can redistribute it and/or
@@ -39,7 +39,7 @@ _IO_ftell (fp)
   pos = _IO_seekoff (fp, 0, _IO_seek_cur, 0);
   if (_IO_in_backup (fp))
     {
-      if (fp->_vtable_offset != 0 || fp->_mode < 0)
+      if (fp->_vtable_offset != 0 || fp->_mode <= 0)
 	pos -= fp->_IO_save_end - fp->_IO_save_base;
       else
 	/* XXX For now.  */