diff options
author | June McEnroe <june@causal.agency> | 2019-01-10 20:05:18 -0500 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2019-01-10 20:05:18 -0500 |
commit | 64d994f34fef5d8d5b0c0e5cde1a8c2645e01953 (patch) | |
tree | 02fcedc4cd7ebfd2abd0e6fb016c9b00ba6eb50d /bin/cash/mail.c | |
parent | Replace eaccess with faccessat (diff) | |
download | src-64d994f34fef5d8d5b0c0e5cde1a8c2645e01953.tar.gz src-64d994f34fef5d8d5b0c0e5cde1a8c2645e01953.zip |
Replace strchrnul with strchr
Diffstat (limited to 'bin/cash/mail.c')
-rw-r--r-- | bin/cash/mail.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/cash/mail.c b/bin/cash/mail.c index 81243b87..6f8a3d39 100644 --- a/bin/cash/mail.c +++ b/bin/cash/mail.c @@ -87,7 +87,8 @@ chkmail(int silent) p = mpath; if (*p == '\0') break; - mpath = strchrnul(mpath, ':'); + mpath = strchr(p, ':'); + if (!mpath) mpath = strchr(p, '\0'); if (*mpath != '\0') { *mpath++ = '\0'; if (p == mpath - 1) |