aboutsummaryrefslogtreecommitdiff
path: root/gui/massadd.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gui/massadd.cpp')
-rw-r--r--gui/massadd.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/gui/massadd.cpp b/gui/massadd.cpp
index 861be970c4..b0adce3f47 100644
--- a/gui/massadd.cpp
+++ b/gui/massadd.cpp
@@ -234,23 +234,23 @@ void MassAddDialog::handleTickle() {
// Update the dialog
- char buf[256];
+ Common::String buf;
if (_scanStack.empty()) {
// Enable the OK button
_okButton->setEnabled(true);
- snprintf(buf, sizeof(buf), "%s", _("Scan complete!"));
+ buf = _("Scan complete!");
_dirProgressText->setLabel(buf);
- snprintf(buf, sizeof(buf), _("Discovered %d new games, ignored %d previously added games."), _games.size(), _oldGamesCount);
+ buf = Common::String::format(_("Discovered %d new games, ignored %d previously added games."), _games.size(), _oldGamesCount);
_gameProgressText->setLabel(buf);
} else {
- snprintf(buf, sizeof(buf), _("Scanned %d directories ..."), _dirsScanned);
+ buf = Common::String::format(_("Scanned %d directories ..."), _dirsScanned);
_dirProgressText->setLabel(buf);
- snprintf(buf, sizeof(buf), _("Discovered %d new games, ignored %d previously added games ..."), _games.size(), _oldGamesCount);
+ buf = Common::String::format(_("Discovered %d new games, ignored %d previously added games ..."), _games.size(), _oldGamesCount);
_gameProgressText->setLabel(buf);
}