Commit 4c1805d7 by Phil Edwards

c_strings.cc (test01, test02): Increase `carray' size.

2001-09-25  Phil Edwards  <pme@gcc.gnu.org>

	* testsuite/21_strings/c_strings.cc (test01, test02):  Increase
	`carray' size.

From-SVN: r45817
parent 77cd227e
2001-09-25 Phil Edwards <pme@gcc.gnu.org>
* testsuite/21_strings/c_strings.cc (test01, test02): Increase
`carray' size.
2001-09-25 Phil Edwards <pme@gcc.gnu.org>
* docs/html/20_util/howto.html: Add anchor name.
* docs/html/23_containers/howto.html: Line wrapping, another link.
* docs/html/25_algorithms/howto.html: Another note.
......
......@@ -33,7 +33,7 @@ void test01()
const char* cc1 = &cc;
const char* ccarray1 = "san francisco roof garden inspectors";
const char* ccarray2 = "san francisco sunny-day park inspectors";
char carray[30];
char carray[50];
std::strcpy(carray, ccarray1);
void* v = carray;
const void* cv = ccarray1;
......@@ -70,7 +70,7 @@ void test02()
const char* ccarray1 = "san francisco roof garden inspectors";
const char* ccarray2 = "san francisco sunny-day park inspectors";
char carray[30];
char carray[50];
strcpy(carray, ccarray1);
void* v = carray;
const void* cv = ccarray1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment