fixed insecure format strings in LSTX handlers (thanks to Anssi Hannula)

This commit is contained in:
schmirl
2009-07-17 06:25:55 +00:00
parent 06e1bb7976
commit b099df3011
3 changed files with 8 additions and 4 deletions

View File

@@ -1,5 +1,5 @@
/*
* $Id: connectionVTP.c,v 1.18 2008/04/07 14:27:30 schmirl Exp $
* $Id: connectionVTP.c,v 1.18.2.1 2009/07/17 06:25:56 schmirl Exp $
*/
#include "server/connectionVTP.h"
@@ -157,7 +157,7 @@ bool cLSTEHandler::Next(bool &Last)
Last = true;
cString str(m_Error, true);
m_Error = NULL;
return m_Client->Respond(m_Errno, *str);
return m_Client->Respond(m_Errno, "%s", *str);
}
Last = false;
@@ -350,7 +350,7 @@ bool cLSTCHandler::Next(bool &Last)
Last = true;
cString str(m_Error, true);
m_Error = NULL;
return m_Client->Respond(m_Errno, *str);
return m_Client->Respond(m_Errno, "%s", *str);
}
int number;
@@ -446,7 +446,7 @@ bool cLSTTHandler::Next(bool &Last)
Last = true;
cString str(m_Error, true);
m_Error = NULL;
return m_Client->Respond(m_Errno, *str);
return m_Client->Respond(m_Errno, "%s", *str);
}
bool result;