mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-29 14:42:26 +00:00
SKY: Replace snprintf() usage with Common::String::format()
Safer and less portability issues.
This commit is contained in:
parent
9c2759c1a7
commit
bd58c9459d
@ -151,9 +151,7 @@ GameList SkyMetaEngine::detectGames(const Common::FSList &fslist) const {
|
||||
while (sv->dinnerTableEntries) {
|
||||
if (dinnerTableEntries == sv->dinnerTableEntries &&
|
||||
(sv->dataDiskSize == dataDiskSize || sv->dataDiskSize == -1)) {
|
||||
char buf[32];
|
||||
snprintf(buf, sizeof(buf), "v0.0%d %s", sv->version, sv->extraDesc);
|
||||
dg.updateDesc(buf);
|
||||
dg.updateDesc(Common::String::format("v0.0%d %s", sv->version, sv->extraDesc).c_str());
|
||||
dg.setGUIOptions(sv->guioptions);
|
||||
break;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user