mirror of https://github.com/mpv-player/mpv
input.c: remove write to buffer[-1] in parse_config()
This commit is contained in:
parent
10efda3b37
commit
df899f59be
|
@ -1731,7 +1731,6 @@ static int parse_config(struct input_ctx *ictx, char *file)
|
|||
if (bs > (end - buffer))
|
||||
memmove(buffer, end, bs - (end - buffer));
|
||||
bs -= (end - buffer);
|
||||
buffer[bs - 1] = '\0';
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue