pch = NULL;
if (EmailEnd != NULL) {
gt = 1;
- EmailEnd --;
}
else {
EmailEnd = pche;
EmailStart = strchr(UserStart, '<');
if ((EmailStart == NULL) || (EmailStart > EmailEnd))
break;
- UserEnd = EmailStart - 1;
+ UserEnd = EmailStart;
+
+ while ((UserEnd > UserStart) &&
+ isspace (*(UserEnd - 1)))
+ UserEnd --;
EmailStart ++;
if (UserStart >= UserEnd)
UserStart = UserEnd = NULL;