mirror of
https://github.com/kevinbentley/Descent3.git
synced 2026-04-04 11: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:
@@ -612,7 +612,7 @@ bool InputObjectName(char *buf, int len, char *title, char *prompt, CWnd *wnd) {
|
||||
if (len > (PAGENAME_LEN - 1))
|
||||
len = PAGENAME_LEN - 1;
|
||||
|
||||
char *tempbuf = (char *)mem_malloc(len);
|
||||
char *tempbuf = mem_rmalloc<char>(len);
|
||||
|
||||
strncpy(tempbuf, buf, len - 1);
|
||||
tempbuf[len - 1] = '\0';
|
||||
|
||||
Reference in New Issue
Block a user