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:
parent
dda5f2a1c0
commit
2cfdb34a57
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user