Add string terminator to test.
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
This commit is contained in:
parent
6b4d18f434
commit
e2c9d9899a
|
@ -44,13 +44,14 @@ TEST_CASE("Use case insensitive const string in switch case", "[Utilities]") {
|
||||||
|
|
||||||
__attribute__((optnone))
|
__attribute__((optnone))
|
||||||
static Arbutils::CaseInsensitiveConstString TestCreateConstString(){
|
static Arbutils::CaseInsensitiveConstString TestCreateConstString(){
|
||||||
char originalVal [6];
|
char originalVal [7];
|
||||||
originalVal[0] = 'f';
|
originalVal[0] = 'f';
|
||||||
originalVal[1] = 'o';
|
originalVal[1] = 'o';
|
||||||
originalVal[2] = 'o';
|
originalVal[2] = 'o';
|
||||||
originalVal[3] = 'b';
|
originalVal[3] = 'b';
|
||||||
originalVal[4] = 'a';
|
originalVal[4] = 'a';
|
||||||
originalVal[5] = 'r';
|
originalVal[5] = 'r';
|
||||||
|
originalVal[6] = '\0';
|
||||||
return Arbutils::CaseInsensitiveConstString(originalVal);
|
return Arbutils::CaseInsensitiveConstString(originalVal);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue