From 8800a798d1f0cc3453d01ceaf2f4972d3ae75baa Mon Sep 17 00:00:00 2001 From: Vinson Lee Date: Wed, 6 Apr 2011 16:13:15 -0700 Subject: [PATCH] mesa: Fix allocation size of extension_indices array. Reviewed-by: Brian Paul --- src/mesa/main/extensions.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.30.2