Add missing header
Use proper buffer size in memset, not the size of the pointer.