Fix a cut-paste coding error

This commit is contained in:
kipp%netscape.com 1998-12-08 17:19:17 +00:00
parent 825f4e5f8b
commit bf1ae8fe33

View File

@ -277,7 +277,7 @@ void nsCacheObject::Charset(const char* i_Charset)
if (m_Charset)
delete[] m_Charset;
int len = PL_strlen(i_Charset);
m_URL = new char[len + 1];
m_Charset = new char[len + 1];
PL_strncpyz(m_Charset, i_Charset, len+1);
}