mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-09-09 17:02:22 +08:00
* ldlex.l (yy_input): Correct error check.
This commit is contained in:
@ -596,7 +596,7 @@ yy_input (buf, result, max_size)
|
||||
if (yyin)
|
||||
{
|
||||
*result = fread ((char *) buf, 1, max_size, yyin);
|
||||
if (*result < 0)
|
||||
if (*result < max_size && ferror (yyin))
|
||||
einfo ("%F%P: read in flex scanner failed\n");
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user