diff options
author | DJ Delorie <dj@delorie.com> | 2011-04-10 19:15:08 +0000 |
---|---|---|
committer | DJ Delorie <dj@delorie.com> | 2011-04-10 19:15:08 +0000 |
commit | 657ad000c3a77a73e26ddee24daffe2987e75911 (patch) | |
tree | ad9c51083b622fdbdb68010a0e54ad6c890e599b /libiberty/testsuite | |
parent | 4f271d34d39a1c23eecc4cfd57466058537c3d9c (diff) | |
download | gdb-657ad000c3a77a73e26ddee24daffe2987e75911.tar.gz |
merge from gcc
Diffstat (limited to 'libiberty/testsuite')
-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 c16a0322a6c..57b96b3ff97 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); |