I'm confused why I am getting this error. I've looked around and have found someone with a similar error, and their issue was not allocating enough new memory for NULL. I didn't think that was the problem with mine, because I added strlen + 1? I'm lost...
//Copy Constructor
Rational::Rational(const Rational& other) :
m_numerator(other.m_numerator), m_denominator(other.m_denominator),
m_name(NULL)
{
m_name = NULL;
if (other.m_name != NULL)
{
this->m_name = new char[strlen(other.m_name) + 1]; //ErrorMarkHere
strcpy(this->m_name, other.m_name);
}
}