diff options
author | June McEnroe <june@causal.agency> | 2020-03-09 04:35:23 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2020-03-09 20:01:30 -0400 |
commit | 1c2f9fffe7ddf464ca3f2bd70dac7db90c5b8fca (patch) | |
tree | 5e6c5a8287ef53b59d45908eee6ebb3a5944b733 /bin/1sh/mail.c | |
parent | Replace eaccess with faccessat (diff) | |
download | src-1c2f9fffe7ddf464ca3f2bd70dac7db90c5b8fca.tar.gz src-1c2f9fffe7ddf464ca3f2bd70dac7db90c5b8fca.zip |
Replace strchrnul with strchr
Diffstat (limited to '')
-rw-r--r-- | bin/1sh/mail.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/1sh/mail.c b/bin/1sh/mail.c index 8c6b59ae..01b370c6 100644 --- a/bin/1sh/mail.c +++ b/bin/1sh/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) |