mesa: Fix allocation size of extension_indices array.
authorVinson Lee <vlee@vmware.com>
Wed, 6 Apr 2011 23:13:15 +0000 (16:13 -0700)
committerVinson Lee <vlee@vmware.com>
Wed, 6 Apr 2011 23:14:22 +0000 (16:14 -0700)
Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/main/extensions.c

index 285e08d..e5711f2 100644 (file)
@@ -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);