Quote Originally Posted by Fri View Post
I changed the *(starpos) = '\0'; to *(starpos-1) = '\0'; but no change.
Unfortunately... This is the kind of problem that is very difficult to debug remotely.