summaryrefslogtreecommitdiffstats
path: root/libvo/vo_fbdev.c
diff options
context:
space:
mode:
Diffstat (limited to 'libvo/vo_fbdev.c')
-rw-r--r--libvo/vo_fbdev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libvo/vo_fbdev.c b/libvo/vo_fbdev.c
index 8f3001a81f..575b9810c8 100644
--- a/libvo/vo_fbdev.c
+++ b/libvo/vo_fbdev.c
@@ -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;
}