From: Vinson Lee Date: Wed, 6 Apr 2011 23:13:15 +0000 (-0700) Subject: mesa: Fix allocation size of extension_indices array. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8800a798d1f0cc3453d01ceaf2f4972d3ae75baa;p=mesa.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 285e08d7596..e5711f21aec 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);