Eek, a bug!
Position 0 means no-movement for SEEK_CUR ... not for SEEK_SET.
This commit is contained in:
parent
33446e9093
commit
b31d06ca14
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue