openbsd-ports/lang/gfortran/patches/patch-libiberty_testsuite_test-expandargv_c
steven 6f0b523996 import separate port of gfortran 4.2.1, in sync with the base compiler.
meant to be used on archs that have gcc4 in base, this doesn't require a
full gcc build from ports, and provides libgfortran as a subpackage.

idea from espie some months ago.
2010-10-10 17:39:06 +00:00

12 lines
511 B
Plaintext

$OpenBSD: patch-libiberty_testsuite_test-expandargv_c,v 1.1.1.1 2010/10/10 17:39:07 steven 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);