1
0
mirror of https://github.com/mpv-player/mpv synced 2025-01-11 09:29:29 +00:00

dumb bug fixed

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@539 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
szabii 2001-04-20 01:09:53 +00:00
parent dda5f2a1c0
commit 2cfdb34a57

View File

@ -501,7 +501,7 @@ static range_t *str2range(char *s)
for (i = 0; *endptr; i++) {
if (*s == ',')
goto out_err;
if (!(r = (range_t *) realloc(r, sizeof(*r) * i + 2))) {
if (!(r = (range_t *) realloc(r, sizeof(*r) * (i + 2)))) {
printf("can't realloc 'r'\n");
return NULL;
}