don't do extra copy of classString

This commit is contained in:
Isaac Connor 2017-02-02 09:22:13 -05:00
parent cee05a1bb7
commit 1102f449aa
1 changed files with 1 additions and 3 deletions

View File

@ -521,8 +521,6 @@ void Logger::logPrint( bool hex, const char * const filepath, const int line, co
if ( level < PANIC || level > DEBUG9 ) if ( level < PANIC || level > DEBUG9 )
Panic( "Invalid logger level %d", level ); Panic( "Invalid logger level %d", level );
strncpy( classString, smCodes[level].c_str(), sizeof(classString) );
gettimeofday( &timeVal, NULL ); gettimeofday( &timeVal, NULL );
#if 0 #if 0
@ -571,7 +569,7 @@ void Logger::logPrint( bool hex, const char * const filepath, const int line, co
timeString, timeString,
mId.c_str(), mId.c_str(),
tid, tid,
classString, smCodes[level].c_str(),
file, file,
line line
); );