Fix a bad sizeof call in raw API channel bindings

Commit 12e88c37bf5b2d1c60144c980f82fb74e8fa2b6b miscopied the
sizeof call, allocating the size of a pointer instead of the size
of the underlying struct.  This fixes that.