diff options
author | John Kohl <jtkohl@mit.edu> | 1989-05-11 10:19:06 +0000 |
---|---|---|
committer | John Kohl <jtkohl@mit.edu> | 1989-05-11 10:19:06 +0000 |
commit | d39fa9d6801555f3e32adc002bd17457d114999d (patch) | |
tree | 06f5b2c746f40ae68a71f1833f5109902668c5b6 | |
parent | 1239914a69ae8a4e0a6f633837e280bb2e1b7e3f (diff) |
first field should be signature, so put newline between things.
-rw-r--r-- | clients/zleave/zleave.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/clients/zleave/zleave.c b/clients/zleave/zleave.c index d45cc88..16670b0 100644 --- a/clients/zleave/zleave.c +++ b/clients/zleave/zleave.c @@ -313,7 +313,7 @@ char *msg; if (use_zephyr) { real_message = (char *) malloc(strlen(msg) + strlen(reminder_message) + 2); - sprintf(real_message,"%s%c%s",msg,'\0',reminder_message); + sprintf(real_message,"%c%s\n%s",'\0',msg,reminder_message); (void) bzero((char *)¬ice, sizeof(notice)); notice.z_kind = ACKED; @@ -323,9 +323,10 @@ char *msg; notice.z_recipient = ZGetSender(); notice.z_opcode = ""; notice.z_sender = (char *) 0; - notice.z_default_format = "\n$1\n$2"; + notice.z_default_format = "\n$2"; notice.z_message = real_message; - notice.z_message_len = strlen(msg)+strlen(reminder_message)+2; + /* +3: initial null, newline, final null */ + notice.z_message_len = strlen(msg)+strlen(reminder_message)+3; if (ZSendNotice(¬ice, ZAUTH) != ZERR_NONE) { printf("\7\7\7%s\n%s", msg, reminder_message); |