check for 0 length before memcpy:
check for 0 length before memcpy:

.../wslay/lib/wslay_event.c:304:7: runtime error: null pointer passed as argument 2, which is declared to never be null

tatsuhiro-t/wslay