Fixed std::memset

This commit is contained in:
Craig Hutchinson 2015-12-03 14:41:34 +00:00
parent 20799cc44a
commit 5860fdff8d

View File

@ -224,7 +224,7 @@ namespace Catch {
char const* getLineOfChars() {
static char line[CATCH_CONFIG_CONSOLE_WIDTH] = {0};
if( !*line ) {
memset( line, C, CATCH_CONFIG_CONSOLE_WIDTH-1 );
std::memset( line, C, CATCH_CONFIG_CONSOLE_WIDTH-1 );
line[CATCH_CONFIG_CONSOLE_WIDTH-1] = 0;
}
return line;