size optimization (zlib is back to 34/35)
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4459 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
ad3d61c837
commit
7a4bdcf90f
2 changed files with 3 additions and 3 deletions
|
@ -124,7 +124,7 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInst,LPSTR lpszCmdParam,
|
|||
}
|
||||
DeleteFile(state_command_line);
|
||||
|
||||
lstrcpyn(state_command_line, GetCommandLine(), NSIS_MAX_STRLEN);
|
||||
mystrcpy(state_command_line, GetCommandLine());
|
||||
|
||||
#ifdef NSIS_CONFIG_VISIBLE_SUPPORT
|
||||
g_hInstance = GetModuleHandle(NULL);
|
||||
|
|
|
@ -544,7 +544,7 @@ int NSISCALL myatoi(char *s)
|
|||
// of a new function there should be about a couple of dozen or so calls.
|
||||
char * NSISCALL mystrcpy(char *out, const char *in)
|
||||
{
|
||||
return lstrcpy(out, in);
|
||||
return lstrcpyn(out, in, NSIS_MAX_STRLEN);
|
||||
}
|
||||
|
||||
int NSISCALL mystrlen(const char *in)
|
||||
|
@ -680,7 +680,7 @@ char * NSISCALL GetNSISString(char *outbuf, int strtab)
|
|||
} // while
|
||||
*out = 0;
|
||||
if (outbuf)
|
||||
return lstrcpyn(outbuf, ps_tmpbuf, NSIS_MAX_STRLEN);
|
||||
return mystrcpy(outbuf, ps_tmpbuf);
|
||||
return ps_tmpbuf;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue