diff options
author | John Kohl <jtkohl@mit.edu> | 1988-07-10 18:24:18 +0000 |
---|---|---|
committer | John Kohl <jtkohl@mit.edu> | 1988-07-10 18:24:18 +0000 |
commit | 9bef80e697e444da902dd3ab4647eb7b76c3e6d9 (patch) | |
tree | 6f20200b89d35b1792dbb4a95638c346fdd344b7 /clients/zwrite | |
parent | 07d5105206368a49d240118677474badfead762b (diff) |
fix up signature stuff
Diffstat (limited to 'clients/zwrite')
-rw-r--r-- | clients/zwrite/zwrite.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/clients/zwrite/zwrite.c b/clients/zwrite/zwrite.c index 54dd378..03a9c79 100644 --- a/clients/zwrite/zwrite.c +++ b/clients/zwrite/zwrite.c @@ -156,12 +156,8 @@ main(argc, argv) notice.z_recipient = ""; if (filsys == 1) notice.z_default_format = "@bold(Filesystem Operation Message for $instance:)\nFrom: @bold($sender)\n$message"; - else if (signature && auth == ZAUTH) - notice.z_default_format = "Class $class, Instance $instance:\n@center(To: @bold($recipient))\nFrom: $message"; - else if (signature) - notice.z_default_format = "@bold(UNAUTHENTIC) Class $class, Instance $instance:\n@center(To: @bold($recipient))\nFrom: $message"; else if (auth == ZAUTH) - notice.z_default_format = "Class $class, Instance $instance:\n$message"; + notice.z_default_format = "Class $class, Instance $instance:\n@center(To: @bold($recipient))\n$message"; else notice.z_default_format = "@bold(UNAUTHENTIC) Class $class, Instance $instance:\n$message"; @@ -174,8 +170,9 @@ main(argc, argv) message = NULL; msgsize = 0; if (signature) { - message = malloc((unsigned)(strlen(signature)+1)); - (void) strcpy(message, signature); + message = malloc((unsigned)(strlen(signature)+sizeof("From: ")+2)); + (void) strcpy(message, "From: "); + (void) strcat(message, signature); msgsize = strlen(message)+1; } |