mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-25 07:13:34 +01:00
Fix a potentially not null terminated string.
This commit is contained in:
1 parent
86ec5114d2
commit
a191b9ac7f
1 file changed
+1
@@ -426,6 +426,7 @@ void SymbolMap::AddModule(const char *name, u32 address, u32 size) {
|
||||
|
||||
ModuleEntry mod;
|
||||
strncpy(mod.name, name, ARRAY_SIZE(mod.name));
|
||||
mod.name[ARRAY_SIZE(mod.name) - 1] = '\0';
|
||||
mod.start = address;
|
||||
mod.size = size;
|
||||
mod.index = (int)modules.size() + 1;
|
||||
|
||||
Reference in new issue
Block a user