Patch #250: Fix of mingw-w64 warnings concering out of boundary array access
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6484 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
da5a85d147
commit
881fa61896
2 changed files with 12 additions and 12 deletions
|
@ -247,7 +247,7 @@ EXTERN_C void NSISWinMainNOCRT()
|
|||
CreateDirectory(state_temp_dir,NULL);
|
||||
SetCurrentDirectory(state_temp_dir);
|
||||
|
||||
if (!state_install_directory[0])
|
||||
if (!(*state_install_directory))
|
||||
mystrcpy(state_install_directory,state_exe_directory);
|
||||
|
||||
mystrcpy(g_usrvars[0], realcmds);
|
||||
|
@ -280,7 +280,7 @@ EXTERN_C void NSISWinMainNOCRT()
|
|||
}
|
||||
}
|
||||
}
|
||||
g_usrvars[1][0]++;
|
||||
(*(((NSIS_STRING *)g_usrvars)[1]))++;
|
||||
}
|
||||
|
||||
#ifdef NSIS_SUPPORT_MOVEONREBOOT
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue