fixed segmentation fault error. Don't use a pointer to assigne a string to a variable that you want to modify!