mirror of https://github.com/BOINC/boinc.git
*** empty log message ***
svn path=/trunk/boinc/; revision=3155
This commit is contained in:
parent
8f0c7456a5
commit
bcf63ba387
|
@ -102,6 +102,7 @@ using namespace std;
|
|||
#ifdef _WIN32
|
||||
|
||||
#define vsnprintf _vsnprintf
|
||||
#define snprintf _snprintf
|
||||
#define fdopen _fdopen
|
||||
#define dup _dup
|
||||
#define unlink _unlink
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue