From 4a41f3face78a551ea5c85db24125989754f2ee8 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Mon, 23 Sep 2019 08:51:36 -0700 Subject: [PATCH] ld-plugin/pr24406-1.c: Correct buffer size to read * testsuite/ld-plugin/pr24406-1.c (main): Correct buffer size to read. --- ld/ChangeLog | 5 +++++ ld/testsuite/ld-plugin/pr24406-1.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ld/ChangeLog b/ld/ChangeLog index fe27434bf2..0e550d21c2 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,8 @@ +2019-09-23 H.J. Lu + + * testsuite/ld-plugin/pr24406-1.c (main): Correct buffer size + to read. + 2019-09-23 Alan Modra * deffilep.y: Include bfdlink.h. diff --git a/ld/testsuite/ld-plugin/pr24406-1.c b/ld/testsuite/ld-plugin/pr24406-1.c index 43995bdb07..fc706d3f71 100644 --- a/ld/testsuite/ld-plugin/pr24406-1.c +++ b/ld/testsuite/ld-plugin/pr24406-1.c @@ -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; } -- 2.34.1