Skip to content

Commit

Permalink
some stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
israpps committed Feb 28, 2024
1 parent 7f9feed commit 24afdd0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -2437,17 +2437,17 @@ static void Execute(char *pathin)
return;
}
IRXFound:

Check warning on line 2439 in src/main.c

View check run for this annotation

codefactor.io / CodeFactor

src/main.c#L2439

Buffer copy without checking size of input (CWE-120) (flawfinder7-sprintf)
p = strrchr(path, '/');
p = strrchr(fullpath, '/');
sprintf(mainMsg, LNG(confirm_irx_exec), '\n', (p!=NULL) ? p : "");
if (ynDialog(mainMsg)>0) {
int ret, id;
id = SifLoadStartModule(fullpath, 0, NULL, &ret);
sprintf(mainMsg, "%s: id:%d, ret:%d (%s)",
(p!=NULL) ? p : "MODULE",
(p!=NULL) ? p+1 : "MODULE",
id, ret,
(id>0 && ret!=0) ? LNG(OK) : LNG(Failed));
(id>0 && ret!=1) ? LNG(OK) : LNG(Failed));
DPRINTF("%s\n", mainMsg);
}
} else mainMsg[0] = 0;
}
//------------------------------
//endfunc Execute
Expand Down

0 comments on commit 24afdd0

Please sign in to comment.