diff options
author | Max Horn | 2011-03-18 14:41:45 +0100 |
---|---|---|
committer | Max Horn | 2011-06-18 01:36:15 +0200 |
commit | 5455fc5ff48c6b005ac514c55f975491c2202bac (patch) | |
tree | 668d51b417060b9b1fa1f45634915a8b910ef623 | |
parent | 71ea5acd29e97a123d095d88638778bf3dbe4d0d (diff) | |
download | scummvm-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.cpp | 5 |
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 |