diff options
| author | Léo Lam <leo@innovatetechnologi.es> | 2017-10-28 22:40:05 +0200 |
|---|---|---|
| committer | Léo Lam <leo@innovatetechnologi.es> | 2017-10-28 22:40:05 +0200 |
| commit | 7aa083388b96fcd1bc56c0746ab9559446516d71 (patch) | |
| tree | e3a56614b16c6ef7a594c542d5c0c2a2ef306d9a /Source/Core/Common/Config/Config.cpp | |
| parent | 5d449c00e63e9e4dceeda1bca385b6831de12e0f (diff) | |
NANDImporter: Construct strings correctly
Use std::string(cstring, strnlen(cstring, max_length)) instead of
trying to remove extra null characters manually, which is a bit
ugly and error prone.
And indeed, the original code contained a bug which would cause
extra NULLs to not be removed at all if the string did not
end with a NULL -- causing issues down the road when constructing
paths for sub-entries.
Diffstat (limited to 'Source/Core/Common/Config/Config.cpp')
0 files changed, 0 insertions, 0 deletions
