copies read string into struct instead of hoping it will stay long enough to use a cast pointer
Merge pull request #244 from javierguerragiraldez/master

lib.pcap.lua: replace ffi.cast() from a local string with ffi.copy()