From f7b37ee00a5b71c6f95c4c6ebfda419bc74f5f5c Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sun, 30 Jun 2013 10:19:29 -0700 Subject: [PATCH] Read symbols with spaces in their names. Before it was changing "UNK: hex" and "EXP: hex" into "UNK:" and "EXP:". --- Core/Debugger/SymbolMap.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Core/Debugger/SymbolMap.cpp b/Core/Debugger/SymbolMap.cpp index c843735fb7..0413c95e7b 100644 --- a/Core/Debugger/SymbolMap.cpp +++ b/Core/Debugger/SymbolMap.cpp @@ -173,7 +173,8 @@ bool SymbolMap::LoadSymbolMap(const char *filename) if (!started) continue; MapEntry e; - sscanf(line,"%08x %08x %08x %i %s",&e.address,&e.size,&e.vaddress,(int*)&e.type,e.name); + memset(&e, 0, sizeof(e)); + sscanf(line,"%08x %08x %08x %i %127c",&e.address,&e.size,&e.vaddress,(int*)&e.type,e.name); if (e.type == ST_DATA && e.size==0) e.size=4;