From 138580f28448f242f8705da318cb14ff1eb8bb04 Mon Sep 17 00:00:00 2001 From: Frank Schmirler Date: Fri, 1 Feb 2013 22:28:46 +0100 Subject: [PATCH] API change of 1.7.28: missed one affected line leading to crashed in VTP (refs #1226) --- server/connectionVTP.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/server/connectionVTP.c b/server/connectionVTP.c index 1366e42..57afafa 100644 --- a/server/connectionVTP.c +++ b/server/connectionVTP.c @@ -1815,7 +1815,11 @@ bool cConnectionVTP::Respond(int Code, const char *Message, ...) { va_list ap; va_start(ap, Message); +#if APIVERSNUM >= 10728 + cString str = cString::vsprintf(Message, ap); +#else cString str = cString::sprintf(Message, ap); +#endif va_end(ap); if (Code >= 0 && m_LastCommand != NULL) {