Changeset 18108b1e


Ignore:
Timestamp:
Feb 19, 2008, 4:55:35 AM (13 years ago)
Author:
Geoffrey Thomas <geofft@mit.edu>
Branches:
master, barnowl_perlaim, debian, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
4cc0ee0b
Parents:
2f69081
Message:
Fix a bug where an explicit (local) realm foiled
owl_message_get_cc_without_recipient(). (per quentin)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • message.c

    r635881c r18108b1e  
    670670char *owl_message_get_cc_without_recipient(owl_message *m)
    671671{
    672   char *cc, *out, *end, *user, *recip;
     672  char *cc, *out, *end, *user, *shortuser, *recip;
    673673
    674674  cc = owl_message_get_cc(m);
     
    682682  user = strtok(cc, " ");
    683683  while (user != NULL) {
    684     if (strcasecmp(user, recip) != 0) {
     684    shortuser = short_zuser(user);
     685    if (strcasecmp(shortuser, recip) != 0) {
    685686      strcpy(end, user);
    686687      end[strlen(user)] = ' ';
    687688      end += strlen(user) + 1;
    688689    }
     690    free(shortuser);
    689691    user = strtok(NULL, " ");
    690692  }
Note: See TracChangeset for help on using the changeset viewer.