Revert "pipebuffer: Fix buffer overflow."

This reverts commit 55839ae064.
This commit is contained in:
Keith Whitwell 2008-12-12 12:05:21 +00:00
parent 72d456494a
commit 71051f1f40

View file

@ -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;