API change of 1.7.28: missed one affected line leading to crashed in VTP

(refs #1226)
This commit is contained in:
Frank Schmirler 2013-02-01 22:28:46 +01:00
parent 525edc1ccf
commit 138580f284

View File

@ -1815,7 +1815,11 @@ bool cConnectionVTP::Respond(int Code, const char *Message, ...)
{ {
va_list ap; va_list ap;
va_start(ap, Message); va_start(ap, Message);
#if APIVERSNUM >= 10728
cString str = cString::vsprintf(Message, ap);
#else
cString str = cString::sprintf(Message, ap); cString str = cString::sprintf(Message, ap);
#endif
va_end(ap); va_end(ap);
if (Code >= 0 && m_LastCommand != NULL) { if (Code >= 0 && m_LastCommand != NULL) {