Fix an unterminated string in regress tests which caused the regress
tests to bail out early. no pkg bump since no change in package.
This commit is contained in:
parent
033ac89c2b
commit
746defb0ff
@ -0,0 +1,11 @@
|
||||
$OpenBSD: patch-libiberty_testsuite_test-expandargv_c,v 1.1 2009/03/08 02:30:23 kurt Exp $
|
||||
--- libiberty/testsuite/test-expandargv.c.orig Sat Mar 7 17:08:28 2009
|
||||
+++ libiberty/testsuite/test-expandargv.c Sat Mar 7 17:09:01 2009
|
||||
@@ -173,6 +173,7 @@ writeout_test (int test, const char * test_data)
|
||||
fatal_error (__LINE__, "Failed to malloc parse.", errno);
|
||||
|
||||
memcpy (parse, test_data, sizeof (char) * len);
|
||||
+ parse[len] = '\0';
|
||||
/* Run all possible replaces */
|
||||
run_replaces (parse);
|
||||
|
Loading…
Reference in New Issue
Block a user