fixed copy warning
fixed strtok warning