13 lines
603 B
Diff
13 lines
603 B
Diff
diff -ur a/Source/build.cpp b/Source/build.cpp
|
|
--- a/Source/build.cpp 2023-07-28 01:18:23.532000000 +0800
|
|
+++ b/Source/build.cpp 2024-05-24 23:21:19.826249400 +0800
|
|
@@ -4170,7 +4170,7 @@
|
|
|
|
CEXEBuild::postbuild_cmd* CEXEBuild::postbuild_cmd::make(const TCHAR *cmdstr, int cmpop, int cmpval)
|
|
{
|
|
- postbuild_cmd *p = (postbuild_cmd*) (new BYTE[FIELD_OFFSET(postbuild_cmd, cmd[_tcsclen(cmdstr)+!0])]);
|
|
+ postbuild_cmd *p = (postbuild_cmd*) (new BYTE[FIELD_OFFSET(postbuild_cmd, cmd)*_tcsclen(cmdstr)+!0]);
|
|
p->next = NULL, _tcscpy(p->cmd, cmdstr);
|
|
p->cmpop = cmpop, p->cmpval = cmpval;
|
|
return p;
|