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:
@@ -463,7 +463,7 @@ bool CScriptStudio::FindNext(char *w) {
|
||||
|
||||
// Make a copy of the script to work with
|
||||
char *text;
|
||||
text = (char *)mem_malloc(m_EditText.GetLength() + 1);
|
||||
text = mem_rmalloc<char>(m_EditText.GetLength() + 1);
|
||||
if (!text)
|
||||
Int3();
|
||||
strcpy(text, (LPCSTR)m_EditText);
|
||||
|
||||
Reference in New Issue
Block a user