if (!p)
continue;
- switch (mime_which_token(uh->data, p - uh->data)) {
+ switch (mime_which_token(uh->data, p++ - uh->data)) {
case MIME_TO:
env->to = rfc822_parse_adrlist(env->to, p);
break;
for (uh = UserHeader; uh; uh = uh->next) {
const char *p = strchr(uh->data, ':');
+ if (!p)
+ continue;
- switch (mime_which_token(uh->data, (p ?: uh->data) - uh->data)) {
+ switch (mime_which_token(uh->data, p++ - uh->data)) {
case MIME_FROM:
/* User has specified a default From: address. Remove default address */
address_list_wipe(&env->from);