Refactored snort_read, changed strsep to strtok_r, and added some error checking.
--