Changed: Use toString instead of sprintf

--HG--
branch : develop
hg/feature/material-editor
kervala 9 years ago
parent f57b1b9421
commit 09e22e292d

@ -715,7 +715,8 @@ public:
{ {
str = "<NoModule>"; str = "<NoModule>";
} }
str += toString("!0x%X", addr);
str += toString("!0x%p", (void*)addr);
} }
// //
@ -740,9 +741,8 @@ public:
{ {
str = "<NoModule>"; str = "<NoModule>";
} }
char tmp[32];
sprintf (tmp, "!0x%p", addr); str += toString("!0x%p", (void*)addr);
str += tmp;
//} //}
str +=" DEBUG:"+toString("0x%p", addr); str +=" DEBUG:"+toString("0x%p", addr);

@ -138,9 +138,8 @@ static string getSourceInfo (DWORD_TYPE addr)
{ {
str = "<NoModule>"; str = "<NoModule>";
} }
char tmp[32];
sprintf (tmp, "!0x%X", addr); str += toString("!0x%p", (void*)addr);
str += tmp;
} }
return str; return str;

Loading…
Cancel
Save