summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--clients/zpopnotify/zpopnotify.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/clients/zpopnotify/zpopnotify.c b/clients/zpopnotify/zpopnotify.c
index 747079a..ee298ad 100644
--- a/clients/zpopnotify/zpopnotify.c
+++ b/clients/zpopnotify/zpopnotify.c
@@ -70,7 +70,7 @@ main(argc,argv)
(void) strcat(mysender,ZGetRealm());
for (i = 1; i < argc; i++) {
- (void) _BZERO((char *)&notice, sizeof(notice));
+ (void) memset((char *)&notice, 0, sizeof(notice));
notice.z_kind = UNSAFE;
notice.z_class = MAIL_CLASS;
notice.z_class_inst = MAIL_INSTANCE;
@@ -79,7 +79,7 @@ main(argc,argv)
notice.z_default_format = "From Post Office $1:\n$2";
/* in case it's a mailbox name (pathname), strip to username */
- notice.z_recipient = (char *)rindex(argv[i],'/');
+ notice.z_recipient = (char *)strrchr(argv[i],'/');
if (notice.z_recipient)
notice.z_recipient++;
else