mirror of
https://github.com/mpv-player/mpv
synced 2024-12-18 21:06:00 +00:00
parent
886ac09699
commit
5906041343
@ -306,7 +306,7 @@ struct mp_cmd *mp_input_parse_cmd_strv(struct mp_log *log, int def_flags,
|
||||
bstr args[MP_CMD_MAX_ARGS];
|
||||
int num = 0;
|
||||
for (; argv[num]; num++) {
|
||||
if (num > MP_CMD_MAX_ARGS) {
|
||||
if (num >= MP_CMD_MAX_ARGS) {
|
||||
mp_err(log, "%s: too many arguments.\n", location);
|
||||
return NULL;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user