Add string terminator to test.
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Deukhoofd 2020-04-07 18:57:11 +02:00
parent 6b4d18f434
commit e2c9d9899a
Signed by: Deukhoofd
GPG Key ID: ADF2E9256009EDCE
1 changed files with 2 additions and 1 deletions

View File

@ -44,13 +44,14 @@ TEST_CASE("Use case insensitive const string in switch case", "[Utilities]") {
__attribute__((optnone))
static Arbutils::CaseInsensitiveConstString TestCreateConstString(){
char originalVal [6];
char originalVal [7];
originalVal[0] = 'f';
originalVal[1] = 'o';
originalVal[2] = 'o';
originalVal[3] = 'b';
originalVal[4] = 'a';
originalVal[5] = 'r';
originalVal[6] = '\0';
return Arbutils::CaseInsensitiveConstString(originalVal);
}