From: Vinson Lee Date: Wed, 6 Apr 2011 23:13:15 +0000 (-0700) Subject: mesa: Fix allocation size of extension_indices array. X-Git-Tag: mesa-7.11-rc1~1237 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8800a798d1f0cc3453d01ceaf2f4972d3ae75baa;p=platform%2Fupstream%2Fmesa.git mesa: Fix allocation size of extension_indices array. Reviewed-by: Brian Paul --- diff --git a/src/mesa/main/extensions.c b/src/mesa/main/extensions.c index 285e08d..e5711f2 100644 --- a/src/mesa/main/extensions.c +++ b/src/mesa/main/extensions.c @@ -908,7 +908,7 @@ _mesa_make_extension_string(struct gl_context *ctx) return NULL; } - extension_indices = malloc(count * sizeof extension_indices); + extension_indices = malloc(count * sizeof(extension_index)); if (extension_indices == NULL) { free(exts); free(extra_extensions);