summaryrefslogtreecommitdiff
path: root/clients/zaway
diff options
context:
space:
mode:
authorGravatar John Kohl <jtkohl@mit.edu>1988-06-28 12:21:41 +0000
committerGravatar John Kohl <jtkohl@mit.edu>1988-06-28 12:21:41 +0000
commit6fb52ec00c44b60a96a5d2b2f40de0ce826172d0 (patch)
tree268c03de7e4ed87196929337ee8349d2fd4432a6 /clients/zaway
parent3fe26dde46ce0c508fc9acabd98af43593a642e8 (diff)
fix z_default_format.
errno isn't set by malloc() so we use ENOMEM instead
Diffstat (limited to 'clients/zaway')
-rw-r--r--clients/zaway/zaway.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/clients/zaway/zaway.c b/clients/zaway/zaway.c
index 1a9ec03..3409a1b 100644
--- a/clients/zaway/zaway.c
+++ b/clients/zaway/zaway.c
@@ -98,14 +98,14 @@ main(argc,argv)
else {
ptr = malloc(sizeof(DEFAULT_MSG)+1);
if (!ptr) {
- com_err(argv[0],errno,"while getting default message");
+ com_err(argv[0],ENOMEM,"while getting default message");
exit(1);
}
(void) strcpy(ptr,DEFAULT_MSG);
}
notice.z_recipient = notice.z_sender;
notice.z_sender = 0;
- notice.z_default_format = 0;
+ notice.z_default_format = "";
msg[0] = "Automated reply:";
msg[1] = ptr;