diff options
author | Andreas Jaeger <aj@suse.de> | 2002-01-25 13:04:32 +0000 |
---|---|---|
committer | Andreas Jaeger <aj@suse.de> | 2002-01-25 13:04:32 +0000 |
commit | 1e84433f5ce636c1cf4ce417cf646816c8a3b947 (patch) | |
tree | 552b3df0f0866be022c3ebbefb34c8a92f994136 /ld/ldlex.l | |
parent | 6d39955ebe7b9029474cfa994b74ea86409e9456 (diff) | |
download | gdb-1e84433f5ce636c1cf4ce417cf646816c8a3b947.zip gdb-1e84433f5ce636c1cf4ce417cf646816c8a3b947.tar.gz gdb-1e84433f5ce636c1cf4ce417cf646816c8a3b947.tar.bz2 |
* ldlex.l (yy_input): Correct error check.
Diffstat (limited to 'ld/ldlex.l')
-rw-r--r-- | ld/ldlex.l | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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"); } } |