aboutsummaryrefslogtreecommitdiff
path: root/bfd/libbfd.c
diff options
context:
space:
mode:
authorKen Raeburn <raeburn@cygnus>1993-03-23 20:11:25 +0000
committerKen Raeburn <raeburn@cygnus>1993-03-23 20:11:25 +0000
commitb31d06ca14269ecf73276ea1b457a247dcbb4ad4 (patch)
tree4a6e4ef9e5a1fc459a312c262e86bd99e5ef3cf2 /bfd/libbfd.c
parent33446e909348ff3038e94f626ba23f4751884fb4 (diff)
downloadbinutils-b31d06ca14269ecf73276ea1b457a247dcbb4ad4.zip
binutils-b31d06ca14269ecf73276ea1b457a247dcbb4ad4.tar.gz
binutils-b31d06ca14269ecf73276ea1b457a247dcbb4ad4.tar.bz2
Eek, a bug!
Position 0 means no-movement for SEEK_CUR ... not for SEEK_SET.
Diffstat (limited to 'bfd/libbfd.c')
-rw-r--r--bfd/libbfd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/libbfd.c b/bfd/libbfd.c
index 8665b23..75ce90e 100644
--- a/bfd/libbfd.c
+++ b/bfd/libbfd.c
@@ -263,7 +263,7 @@ DEFUN(bfd_seek,(abfd, position, direction),
BFD_ASSERT (direction == SEEK_SET || direction == SEEK_CUR);
- if (direction == SEEK_SET && position == 0)
+ if (direction == SEEK_CUR && position == 0)
return 0;
#ifdef FILE_OFFSET_IS_CHAR_INDEX
if (direction == SEEK_SET && position == abfd->where)