*** empty log message ***

svn path=/trunk/boinc/; revision=3155
This commit is contained in:
Rom Walton 2004-03-24 21:21:25 +00:00
parent 8f0c7456a5
commit bcf63ba387
2 changed files with 4 additions and 3 deletions

View File

@ -102,6 +102,7 @@ using namespace std;
#ifdef _WIN32
#define vsnprintf _vsnprintf
#define snprintf _snprintf
#define fdopen _fdopen
#define dup _dup
#define unlink _unlink

View File

@ -49,8 +49,8 @@ const char * boinc_base_exception::what()
m_strErrorBuffer.empty();
memset(m_szConversionBuffer, '\0', sizeof(m_szConversionBuffer));
itoa(ErrorValue(), m_szConversionBuffer, 10);
snprintf(m_szConversionBuffer, sizeof(m_szConversionBuffer), "%ld", ErrorValue());
m_strErrorBuffer.append(ErrorType());
m_strErrorBuffer.append(" ");
m_strErrorBuffer.append(m_szConversionBuffer);
@ -68,7 +68,7 @@ const char * boinc_base_exception::what()
m_strErrorBuffer.append("'\n");
memset(m_szConversionBuffer, '\0', sizeof(m_szConversionBuffer));
itoa(m_lLineNumber, m_szConversionBuffer, 10);
snprintf(m_szConversionBuffer, sizeof(m_szConversionBuffer), "%ld", m_lLineNumber);
m_strErrorBuffer.append("Line: '");
m_strErrorBuffer.append(m_szConversionBuffer);