Commit 0e181ea7 authored by Peter W. Draper's avatar Peter W. Draper
Browse files

Use sizeof(struct xpart) when copying xparts.


Former-commit-id: 3873e7e189c397364b81fd22a6530551e47830d9
parent 4967ef03
......@@ -285,7 +285,7 @@ void proxy_parts_load ( struct proxy *p , struct part *parts , struct xpart *xpa
( txp = (struct xpart *)malloc( sizeof(struct xpart) * p->size_parts_out ) ) == NULL )
error( "Failed to re-allocate parts_out buffers." );
memcpy( tp , p->parts_out , sizeof(struct part) * p->nr_parts_out );
memcpy( txp , p->xparts_out , sizeof(struct part) * p->nr_parts_out );
memcpy( txp , p->xparts_out , sizeof(struct xpart) * p->nr_parts_out );
free( p->parts_out ); free( p->xparts_out );
p->parts_out = tp; p->xparts_out = txp;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment