Codechange: rename str_validate to StrMakeValid(InPlace) (#9304)
This to be more explicit the function changes the value, and not returns yes/no.
This commit is contained in:
@@ -2598,7 +2598,7 @@ static std::string ReadDWordAsString(ByteReader *reader)
|
||||
char output[5];
|
||||
for (int i = 0; i < 4; i++) output[i] = reader->ReadByte();
|
||||
output[4] = '\0';
|
||||
str_validate(output, lastof(output));
|
||||
StrMakeValidInPlace(output, lastof(output));
|
||||
|
||||
return std::string(output);
|
||||
}
|
||||
|
Reference in New Issue
Block a user