mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-11-17 09:55:28 +03:00
Cosmetics: Fix coding style issues
This commit is contained in:
@@ -37,11 +37,12 @@ namespace transformations {
|
||||
std::string CssDecode::evaluate(std::string value,
|
||||
Assay *assay) {
|
||||
|
||||
char *tmp = (char *) malloc(sizeof(char) * value.size() + 1);
|
||||
char *tmp = reinterpret_cast<char *>(
|
||||
malloc(sizeof(char) * value.size() + 1));
|
||||
memcpy(tmp, value.c_str(), value.size() + 1);
|
||||
tmp[value.size()] = '\0';
|
||||
|
||||
css_decode_inplace((unsigned char *)tmp, value.size());
|
||||
css_decode_inplace(reinterpret_cast<unsigned char *>(tmp), value.size());
|
||||
std::string ret(tmp, 0, value.size());
|
||||
free(tmp);
|
||||
return ret;
|
||||
|
||||
Reference in New Issue
Block a user