Changeset 6711361


Ignore:
Timestamp:
Oct 2, 2007, 12:38:49 AM (17 years ago)
Author:
Nelson Elhage <nelhage@mit.edu>
Branches:
master, barnowl_perlaim, debian, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
abe0962
Parents:
892568b
Message:
Don't crash if we hit `i' on iso-8859-*. This is not the right
solution, but at least it doesn't SEGV.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • message.c

    rad15610 r6711361  
    121121    p=owl_list_get_element(&(m->attributes), i);
    122122    buff=owl_sprintf("  %-15.15s: %-35.35s\n", owl_pair_get_key(p), owl_pair_get_value(p));
     123    if(buff == NULL) {
     124      buff=owl_sprintf("  %-15.15s: %-35.35s\n", owl_pair_get_key(p), "<error>");
     125      if(buff == NULL)
     126        buff=owl_strdup("   <error>\n");
     127    }
    123128    owl_fmtext_append_normal(fm, buff);
    124129    owl_free(buff);
Note: See TracChangeset for help on using the changeset viewer.