aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Horn2011-03-18 14:41:45 +0100
committerMax Horn2011-06-18 01:36:15 +0200
commit5455fc5ff48c6b005ac514c55f975491c2202bac (patch)
tree668d51b417060b9b1fa1f45634915a8b910ef623
parent71ea5acd29e97a123d095d88638778bf3dbe4d0d (diff)
downloadscummvm-rg350-5455fc5ff48c6b005ac514c55f975491c2202bac.tar.gz
scummvm-rg350-5455fc5ff48c6b005ac514c55f975491c2202bac.tar.bz2
scummvm-rg350-5455fc5ff48c6b005ac514c55f975491c2202bac.zip
AGOS: Replace vsprintf by Common::String::vformat
-rw-r--r--engines/agos/string.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/engines/agos/string.cpp b/engines/agos/string.cpp
index 1cdd7f6d81..fa85d5767c 100644
--- a/engines/agos/string.cpp
+++ b/engines/agos/string.cpp
@@ -840,13 +840,12 @@ void AGOSEngine_Feeble::printInteractText(uint16 num, const char *string) {
void AGOSEngine_Feeble::sendInteractText(uint16 num, const char *fmt, ...) {
va_list arglist;
- char string[256];
va_start(arglist, fmt);
- vsprintf(string, fmt, arglist);
+ Common::String string = Common::String::vformat(fmt, arglist);
va_end(arglist);
- printInteractText(num, string);
+ printInteractText(num, string.c_str());
}
#endif