projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6d39955
)
* ldlex.l (yy_input): Correct error check.
author
Andreas Jaeger
<aj@suse.de>
Fri, 25 Jan 2002 13:04:32 +0000
(13:04 +0000)
committer
Andreas Jaeger
<aj@suse.de>
Fri, 25 Jan 2002 13:04:32 +0000
(13:04 +0000)
ld/ChangeLog
patch
|
blob
|
history
ld/ldlex.l
patch
|
blob
|
history
diff --git
a/ld/ChangeLog
b/ld/ChangeLog
index 12f639e582862bb87dc8a818c99fa25dd096ab1c..b8ddd14fabd457f0f82e50e88220f783ad5f168f 100644
(file)
--- a/
ld/ChangeLog
+++ b/
ld/ChangeLog
@@
-1,3
+1,7
@@
+2002-01-25 Andreas Jaeger <aj@suse.de>
+
+ * ldlex.l (yy_input): Correct error check.
+
2002-01-25 Alan Modra <amodra@bigpond.net.au>
* ldmisc.c (demangle): Put back dots when string not demangled.
diff --git
a/ld/ldlex.l
b/ld/ldlex.l
index 9f127f96d506ba16be67ce6197bee901454194a0..0b15ca2fab6000023f765f5959fb9ff8e942babe 100644
(file)
--- a/
ld/ldlex.l
+++ b/
ld/ldlex.l
@@
-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");
}
}