Added string.h include for memcpy used in read()