mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-21 10:34:21 +08:00
Eek, a bug!
Position 0 means no-movement for SEEK_CUR ... not for SEEK_SET.
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user