From 270fb50db804487fcc4e9e6c81d80104991179fd Mon Sep 17 00:00:00 2001 From: Themaister Date: Sun, 10 Nov 2013 18:08:04 +0100 Subject: [PATCH] Forgot sizeof in realloc. --- camera/video4linux2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/camera/video4linux2.c b/camera/video4linux2.c index 713de500e5..dfd37eb1d9 100644 --- a/camera/video4linux2.c +++ b/camera/video4linux2.c @@ -80,7 +80,7 @@ static void generate_YCbCr_to_RGB_lookup(void) int cb; int cr; - YCbCr_to_RGB = (uint32_t*)realloc(YCbCr_to_RGB, 256 * 256 * 256); + YCbCr_to_RGB = (uint32_t*)realloc(YCbCr_to_RGB, 256 * 256 * 256 * sizeof(uint32_t)); if (!YCbCr_to_RGB) return;