summaryrefslogtreecommitdiff
path: root/src/gallium/auxiliary/pipebuffer
diff options
context:
space:
mode:
authorKeith Whitwell <keith@tungstengraphics.com>2008-12-12 12:05:21 +0000
committerKeith Whitwell <keith@tungstengraphics.com>2008-12-12 12:05:21 +0000
commit71051f1f40206dd9d86d64cfdc20cc744a15f12c (patch)
treec03496968a5d13a89339bf2634c03117c346a388 /src/gallium/auxiliary/pipebuffer
parent72d456494a7074f11ab9c735d0caeae4e09a33e7 (diff)
Revert "pipebuffer: Fix buffer overflow."
This reverts commit 55839ae064d64b7fcc180fcddb364bf31ab760dc.
Diffstat (limited to 'src/gallium/auxiliary/pipebuffer')
-rw-r--r--src/gallium/auxiliary/pipebuffer/pb_validate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/pipebuffer/pb_validate.c b/src/gallium/auxiliary/pipebuffer/pb_validate.c
index 94532bb4ce..726ae1688e 100644
--- a/src/gallium/auxiliary/pipebuffer/pb_validate.c
+++ b/src/gallium/auxiliary/pipebuffer/pb_validate.c
@@ -182,7 +182,7 @@ pb_validate_create()
return NULL;
vl->size = PB_VALIDATE_INITIAL_SIZE;
- vl->entries = (struct pb_validate_entry *)CALLOC(vl->size, sizeof(struct pb_validate_entry));
+ vl->entries = (struct pb_validate_entry *)CALLOC(vl->size, sizeof(struct pb_buffer *));
if(!vl->entries) {
FREE(vl);
return NULL;