Changeset a3ba748 for message.c


Ignore:
Timestamp:
Oct 12, 2002, 4:38:22 PM (18 years ago)
Author:
James M. Kretchmar <kretch@mit.edu>
Branches:
master, barnowl_perlaim, debian, owl, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
aecf3e6
Parents:
8fec514
Message:
Fixed more potential memory problems
File:
1 edited

Legend:

Unmodified
Added
Removed
  • message.c

    r8fec514 ra3ba748  
    529529  owl_fmtext_append_normal(&(m->fmtext), "  (Zsig: ");
    530530
    531   zsigbuff=owl_malloc(strlen(owl_message_get_zsig(m)));
     531  zsigbuff=owl_malloc(strlen(owl_message_get_zsig(m))+30);
    532532  owl_message_pretty_zsig(m, zsigbuff);
    533533  owl_fmtext_append_ztext(&(m->fmtext), zsigbuff);
     
    624624
    625625    /* stick on the zsig */
    626     zsigbuff=owl_malloc(strlen(owl_message_get_zsig(m)));
     626    zsigbuff=owl_malloc(strlen(owl_message_get_zsig(m))+30);
    627627    owl_message_pretty_zsig(m, zsigbuff);
    628628    owl_fmtext_append_normal(&(m->fmtext), "    (");
     
    726726
    727727    /* stick on the zsig */
    728     zsigbuff=owl_malloc(strlen(owl_message_get_zsig(m)));
     728    zsigbuff=owl_malloc(strlen(owl_message_get_zsig(m))+30);
    729729    owl_message_pretty_zsig(m, zsigbuff);
    730730    owl_fmtext_append_normal(&(m->fmtext), "    (");
Note: See TracChangeset for help on using the changeset viewer.