Changeset 8fec514 for message.c


Ignore:
Timestamp:
Oct 12, 2002, 12:46:42 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:
a3ba748
Parents:
aa2f6364
Message:
Fixed memory access bug in new outgoing message creation
File:
1 edited

Legend:

Unmodified
Added
Removed
  • message.c

    rb12c219 r8fec514  
    437437  owl_message_set_direction_out(m);
    438438  owl_message_set_type_zephyr(m);
    439   m->sender=owl_strdup(ZGetSender());
    440   m->class=owl_strdup(owl_zwrite_get_class(&z));
    441   m->inst=owl_strdup(owl_zwrite_get_instance(&z));
     439  owl_message_set_sender(m, ZGetSender());
     440  owl_message_set_class(m, owl_zwrite_get_class(&z));
     441  owl_message_set_instance(m, owl_zwrite_get_instance(&z));
    442442  m->recip=long_zuser(owl_zwrite_get_recip_n(&z, 0)); /* only gets the first user, must fix */
    443   m->opcode=owl_strdup(owl_zwrite_get_opcode(&z));
     443  owl_message_set_opcode(m, owl_zwrite_get_opcode(&z));
    444444  m->realm=owl_strdup(owl_zwrite_get_realm(&z)); /* also a hack, but not here */
    445445  m->zwriteline=owl_strdup(line);
    446446  m->body=owl_strdup(body);
    447   m->zsig=owl_strdup(zsig);
     447  owl_message_set_zsig(m, zsig);
    448448 
    449449  /* save the hostname */
     
    499499  owl_fmtext_append_normal(&(m->fmtext), "  (Zsig: ");
    500500
    501   zsigbuff=owl_malloc(strlen(owl_message_get_zsig(m)));
     501  zsigbuff=owl_malloc(strlen(owl_message_get_zsig(m))+30);
    502502  owl_message_pretty_zsig(m, zsigbuff);
    503503  owl_fmtext_append_ztext(&(m->fmtext), zsigbuff);
Note: See TracChangeset for help on using the changeset viewer.