[651] in BarnOwl Developers
[D-O-H] r746 - trunk/owl
daemon@ATHENA.MIT.EDU (nelhage@MIT.EDU)
Thu Oct 29 18:08:19 2009
Resent-From: nelhage@mit.edu
Resent-To: barnowl-dev-mtg@charon.mit.edu
To: dirty-owl-hackers@mit.edu
From: nelhage@MIT.EDU
Reply-to: dirty-owl-hackers@MIT.EDU
Date: Mon, 30 Jul 2007 20:25:59 -0400 (EDT)
Author: nelhage
Date: 2007-07-30 20:25:59 -0400 (Mon, 30 Jul 2007)
New Revision: 746
Modified:
trunk/owl/message.c
trunk/owl/zephyr.c
Log:
* zero-len message means no fields
* Actually use owl_zephyr_get_zsig to get the zsig, which handles 0-
and 1- field zephyrs correctly.
Modified: trunk/owl/message.c
===================================================================
--- trunk/owl/message.c 2007-07-31 00:21:18 UTC (rev 745)
+++ trunk/owl/message.c 2007-07-31 00:25:59 UTC (rev 746)
@@ -840,7 +840,7 @@
} else {
owl_message_set_opcode(m, "");
}
- owl_message_set_zsig(m, n->z_message);
+ owl_message_set_zsig(m, owl_zephyr_get_zsig(n));
if ((ptr=strchr(n->z_recipient, '@'))!=NULL) {
owl_message_set_realm(m, ptr+1);
Modified: trunk/owl/zephyr.c
===================================================================
--- trunk/owl/zephyr.c 2007-07-31 00:21:18 UTC (rev 745)
+++ trunk/owl/zephyr.c 2007-07-31 00:25:59 UTC (rev 746)
@@ -366,6 +366,9 @@
{
int i, fields;
+ if(n->z_message_len == 0)
+ return 0;
+
fields=1;
for (i=0; i<n->z_message_len; i++) {
if (n->z_message[i]=='\0') fields++;