Fixed packetizing and sendfile

packetize wasn't working with sendfile. transmit_packet inside of the
sendFile file wasn't recieving the correct data, now it is.

I needed to malloc the char*