diff options
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"); } } |