mirror of
https://github.com/kevinbentley/Descent3.git
synced 2026-04-04 02:00:04 -04:00
mem_malloc type triviality checks (7/8)
```
git grep -l mem_malloc | xargs perl -i -lpe 's{\((char) \*\)mem_malloc\((\S+)\)}{mem_rmalloc<$1>($2)}'
```
This commit is contained in:
@@ -317,7 +317,7 @@ void CScriptWizard::OnEditScript() {
|
||||
|
||||
FreeScript(m_ScriptSource);
|
||||
studio.GetText(tempstr);
|
||||
m_ScriptSource = (char *)mem_malloc(tempstr.GetLength() + 1);
|
||||
m_ScriptSource = mem_rmalloc<char>(tempstr.GetLength() + 1);
|
||||
|
||||
if (m_ScriptSource) {
|
||||
strcpy(m_ScriptSource, (LPCSTR)tempstr);
|
||||
|
||||
Reference in New Issue
Block a user