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 285e08d7596ca79f45a060981716c4c4c8f20846..e5711f21aecf83dfdf29439cc03f03f993a6b020 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);