diff options
author | DJ Delorie <dj@redhat.com> | 2011-04-10 19:15:10 +0000 |
---|---|---|
committer | DJ Delorie <dj@redhat.com> | 2011-04-10 19:15:10 +0000 |
commit | a55c6f410e2441300484d94d790d7f265c7991b6 (patch) | |
tree | 104e2d61d76f51a50fd19b98d3ba96686b61e11f /libiberty/testsuite/test-expandargv.c | |
parent | e2ece73c64432d4c43522de5d1a633ca12cc9155 (diff) | |
download | gdb-a55c6f410e2441300484d94d790d7f265c7991b6.zip gdb-a55c6f410e2441300484d94d790d7f265c7991b6.tar.gz gdb-a55c6f410e2441300484d94d790d7f265c7991b6.tar.bz2 |
merge from gcc
Diffstat (limited to 'libiberty/testsuite/test-expandargv.c')
-rw-r--r-- | libiberty/testsuite/test-expandargv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libiberty/testsuite/test-expandargv.c b/libiberty/testsuite/test-expandargv.c index c16a032..57b96b3 100644 --- a/libiberty/testsuite/test-expandargv.c +++ b/libiberty/testsuite/test-expandargv.c @@ -204,7 +204,7 @@ writeout_test (int test, const char * test_data) if (parse == NULL) fatal_error (__LINE__, "Failed to malloc parse.", errno); - memcpy (parse, test_data, sizeof (char) * len); + memcpy (parse, test_data, sizeof (char) * (len + 1)); /* Run all possible replaces */ run_replaces (parse); |