1
mirror of https://github.com/mpv-player/mpv synced 2024-08-04 14:59:58 +02:00

input.c: remove write to buffer[-1] in parse_config()

This commit is contained in:
Uoti Urpala 2011-07-11 06:05:19 +03:00
parent 10efda3b37
commit df899f59be

View File

@ -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;
}
}