mirror of
https://github.com/pbatard/rufus.git
synced 2025-05-30 14:35:21 -04:00
[misc] fix Coverity warnings
* What would be nicer was if half these Coverity issues weren't false positives... * Also update Readme and fix progress bar colour not being reset after error
This commit is contained in:
parent
6252636aff
commit
efd6d9f345
5 changed files with 18 additions and 12 deletions
14
src/iso.c
14
src/iso.c
|
@ -224,12 +224,14 @@ static BOOL check_iso_props(const char* psz_dirname, int64_t file_length, const
|
|||
}
|
||||
|
||||
// Check for "install.###" in "###/sources/"
|
||||
if (safe_stricmp(&psz_dirname[max(0, safe_strlen(psz_dirname) - strlen(sources_str))], sources_str) == 0) {
|
||||
for (i = 0; i < ARRAYSIZE(wininst_name); i++) {
|
||||
if (safe_stricmp(psz_basename, wininst_name[i]) == 0) {
|
||||
if (img_report.wininst_index < MAX_WININST) {
|
||||
static_sprintf(img_report.wininst_path[img_report.wininst_index], "?:%s", psz_fullpath);
|
||||
img_report.wininst_index++;
|
||||
if (psz_dirname != NULL) {
|
||||
if (safe_stricmp(&psz_dirname[max(0, ((int)safe_strlen(psz_dirname)) - ((int)strlen(sources_str)))], sources_str) == 0) {
|
||||
for (i = 0; i < ARRAYSIZE(wininst_name); i++) {
|
||||
if (safe_stricmp(psz_basename, wininst_name[i]) == 0) {
|
||||
if (img_report.wininst_index < MAX_WININST) {
|
||||
static_sprintf(img_report.wininst_path[img_report.wininst_index], "?:%s", psz_fullpath);
|
||||
img_report.wininst_index++;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue