ld-plugin/pr24406-1.c: Correct buffer size to read
authorH.J. Lu <hjl.tools@gmail.com>
Mon, 23 Sep 2019 15:51:36 +0000 (08:51 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Mon, 23 Sep 2019 15:51:36 +0000 (08:51 -0700)
* testsuite/ld-plugin/pr24406-1.c (main): Correct buffer size
to read.

ld/ChangeLog
ld/testsuite/ld-plugin/pr24406-1.c

index fe27434bf275a816546ac4177053bf82247a95b0..0e550d21c23c3567828325ac4e0ca87648226e2a 100644 (file)
@@ -1,3 +1,8 @@
+2019-09-23  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * testsuite/ld-plugin/pr24406-1.c (main): Correct buffer size
+       to read.
+
 2019-09-23  Alan Modra  <amodra@gmail.com>
 
        * deffilep.y: Include bfdlink.h.
index 43995bdb0791e0ab85818eb42a4e45602c666f81..fc706d3f718c9564ef9c988e0a6b268c4f6304ee 100644 (file)
@@ -12,6 +12,6 @@ __wrap_read (int fd, void *buffer, size_t count)
 int
 main ()
 {
-  int i = read (1, "abc", 5);
+  int i = read (1, "abc", 4);
   return i == 0;
 }
This page took 0.025123 seconds and 4 git commands to generate.