Changeset 24ccc01 for functions.c


Ignore:
Timestamp:
Aug 26, 2009, 11:50:56 PM (13 years ago)
Author:
Nelson Elhage <nelhage@mit.edu>
Branches:
master, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
e2ebf39
Parents:
36486be
git-author:
Nelson Elhage <nelhage@mit.edu> (08/19/09 23:41:06)
git-committer:
Nelson Elhage <nelhage@mit.edu> (08/26/09 23:50:56)
Message:
Replace owl_message_create_from_zwriteline with owl_message_create_from_zwrite.

By passing in a zwrite structure instead of a line, we make it easier to
construct faked messages without having to go through generaring and
parsing a zwrite command line. We change owl_zephyr_handle_ack to fake a
zwrite structure, fixing the segfault on zephyring users with
quotes (fixes #94), as well as logging errors sending instanced personals
slightly better.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • functions.c

    r36486be r24ccc01  
    229229{
    230230  owl_message *m;
     231  owl_zwrite zw;
     232
     233  owl_zwrite_create_from_line(&zw, zwriteline);
     234  owl_zwrite_set_zsig(&zw, zsig);
    231235
    232236  /* create the message */
    233237  m=owl_malloc(sizeof(owl_message));
    234   owl_message_create_from_zwriteline(m, zwriteline, body, zsig);
     238 
     239  owl_message_create_from_zwrite(m, &zw, body);
     240  owl_zwrite_free(&zw);
    235241
    236242  return(m);
Note: See TracChangeset for help on using the changeset viewer.