From b31d06ca14269ecf73276ea1b457a247dcbb4ad4 Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Tue, 23 Mar 1993 20:11:25 +0000 Subject: [PATCH] Eek, a bug! Position 0 means no-movement for SEEK_CUR ... not for SEEK_SET. --- bfd/libbfd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bfd/libbfd.c b/bfd/libbfd.c index 8665b238ec2..75ce90e4324 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) -- 2.30.2