diff options
-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 |