{
int i, NumFiles = 0, NumDeltaFiles = 0;
bool IsDLL = false, IsOBJ = false;
- char szOpt[1024];
Assembler *pAsm;
MappedFileStream *pIn;
AsmParse *pParser;
if((argv[i][0] == L'/') || (argv[i][0] == L'-'))
#endif
{
- memset(szOpt,0,sizeof(szOpt));
- WszWideCharToMultiByte(uCodePage,0,&argv[i][1],-1,szOpt,sizeof(szOpt),NULL,NULL);
- szOpt[3] = 0;
- if (!_stricmp(szOpt,"NOA"))
+ char szOpt[3 + 1] = { 0 };
+ WszWideCharToMultiByte(uCodePage, 0, &argv[i][1], 3, szOpt, sizeof(szOpt), NULL, NULL);
+ if (!_stricmp(szOpt, "NOA"))
{
pAsm->m_fAutoInheritFromObject = FALSE;
}
- else if (!_stricmp(szOpt,"QUI"))
+ else if (!_stricmp(szOpt, "QUI"))
{
pAsm->m_fReportProgress = FALSE;
bReportProgress = FALSE;