Read symbols with spaces in their names.

Before it was changing "UNK: hex" and "EXP: hex" into "UNK:" and "EXP:".
This commit is contained in:
Unknown W. Brackets 2013-06-30 10:19:29 -07:00
parent bf1e37dd05
commit f7b37ee00a

View File

@ -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;