ndb - autotest

Fix stack overflow in ndb_cpcd on amd64
This commit is contained in:
joreland@mysql.com 2005-06-10 12:31:55 +02:00
parent decf8ed04e
commit 96789d5ecb

View file

@ -352,11 +352,11 @@ Logger::log(LoggerLevel logLevel, const char* pMsg, va_list ap) const
{
if (m_logLevels[LL_ON] && m_logLevels[logLevel])
{
char buf[MAX_LOG_MESSAGE_SIZE];
BaseString::vsnprintf(buf, sizeof(buf), pMsg, ap);
LogHandler* pHandler = NULL;
while ( (pHandler = m_pHandlerList->next()) != NULL)
{
char buf[MAX_LOG_MESSAGE_SIZE];
BaseString::vsnprintf(buf, sizeof(buf), pMsg, ap);
pHandler->append(m_pCategory, logLevel, buf);
}
}