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
This commit is contained in:
Phil Edwards 2001-09-26 01:45:49 +00:00
parent 77cd227ec3
commit 4c1805d702
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
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.

View File

@ -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;