fixed an off by one error with strcpy