--- nsis-3.03-src/Source/build.cpp.orig	2018-11-02 08:07:46.395481800 +0300
+++ nsis-3.03-src/Source/build.cpp	2018-11-02 08:15:51.260933500 +0300
@@ -4020,7 +4020,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;
