Eek, a bug!

Position 0 means no-movement for SEEK_CUR ... not for SEEK_SET.
This commit is contained in:
Ken Raeburn 1993-03-23 20:11:25 +00:00
parent 33446e9093
commit b31d06ca14

View file

@ -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)