Dahrkael/rENet — pull request #1 by jvranish (2012-06-05 14:22:18+00:00)
Title: Fixes bug where packets containing null characters get truncated on reception

On packet reception, the packet data was marshaled into ruby using the rb_str_new2() which uses strlen to compute length (which simple counts up to the first null character). This was causing packets to get truncated to the first null in the packet data. I fixed the issue by using rb_str_new() and feeding it the data length in the packet structure.