From: H.J. Lu Date: Mon, 23 Sep 2019 15:51:36 +0000 (-0700) Subject: ld-plugin/pr24406-1.c: Correct buffer size to read X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4a41f3face78a551ea5c85db24125989754f2ee8;p=binutils-gdb.git ld-plugin/pr24406-1.c: Correct buffer size to read * testsuite/ld-plugin/pr24406-1.c (main): Correct buffer size to read. --- diff --git a/ld/ChangeLog b/ld/ChangeLog index fe27434bf27..0e550d21c23 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 43995bdb079..fc706d3f718 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; }