fixed strcat to memcpy