Hello,
I am not sure what the error means. I think it has to do with how I called the strncpy function. My error is:
.cpp(70) : warning C4996: 'strncpy' was declared deprecated
My code is the following:
// set the tool name
void Tools::setToolName( string toolNameString)
{
// copy at most 20 characters for the tool name
const char *toolNameValue = toolNameString.data();
int length = int(toolNameString.size());
length = ( length < 20 ? length : 19 );
strncpy( toolName, toolNameValue, length);
toolName[ length ] = '\0'; // append null character to lastName
}