use sizeof pointer instead of type in allocation
use sizeof pointer instead of type in allocation

This is a bit more flexible for changing type although the cast would
still need to be updated if the type is updated.

per1234/EtherEvent