refactor(Tools): restyle tools with astyle (#3465)

This commit is contained in:
Kargatum 2020-10-06 16:31:28 +07:00 committed by GitHub
parent be09e03756
commit b00a86f6ab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
51 changed files with 1004 additions and 936 deletions

View file

@ -58,7 +58,7 @@ std::string DBC::GetStringByOffset( int offset )
break;
}
}
char* d = new char[len+1];
char* d = new char[len + 1];
strcpy(d, (const char*)(StringBlock + offset));
d[len] = '\0';
std::string val = std::string(d);