Fix a potentially not null terminated string.

This commit is contained in:
Unknown W. Brackets committed 2015-01-17 18:42:59 -08:00
1 parent 86ec5114d2
commit a191b9ac7f
1 file changed
+1
+1
View File
@@ -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;