changeset 538:eea574dff0fd

dumb bug fixed
author szabii
date Fri, 20 Apr 2001 01:09:53 +0000
parents 672b1e7ccfda
children 48f0c6f0519f
files libvo/vo_fbdev.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vo_fbdev.c	Fri Apr 20 01:07:14 2001 +0000
+++ b/libvo/vo_fbdev.c	Fri Apr 20 01:09:53 2001 +0000
@@ -501,7 +501,7 @@
 	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;
 		}