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:
kichik 2005-12-24 16:39:02 +00:00
parent ad3d61c837
commit 7a4bdcf90f
2 changed files with 3 additions and 3 deletions

View file

@ -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);

View file

@ -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;
}