mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-11 20:35:50 +00:00
Fix a cut-paste coding error
This commit is contained in:
parent
825f4e5f8b
commit
bf1ae8fe33
2
network/cache/nu/src/nsCacheObject.cpp
vendored
2
network/cache/nu/src/nsCacheObject.cpp
vendored
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user