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:
parent
77cd227ec3
commit
4c1805d702
@ -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.
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user