summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/extensions.c
diff options
context:
space:
mode:
authorVinson Lee <[email protected]>2011-04-06 16:13:15 -0700
committerVinson Lee <[email protected]>2011-04-06 16:14:22 -0700
commit8800a798d1f0cc3453d01ceaf2f4972d3ae75baa (patch)
tree98d5b808f8e94205ed883b8453b26ba75facd2d5 /src/mesa/main/extensions.c
parent95368f25c1793619e94d464fe94afcea0409ae26 (diff)
mesa: Fix allocation size of extension_indices array.
Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/mesa/main/extensions.c')
-rw-r--r--src/mesa/main/extensions.c2
1 files changed, 1 insertions, 1 deletions
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);