summaryrefslogtreecommitdiffstats
path: root/libexec
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>2004-03-14 05:27:26 +0000
committerbde <bde@FreeBSD.org>2004-03-14 05:27:26 +0000
commit1e78a65d3aa6589373dc4e14d475393e9a7f984c (patch)
tree285d06553b104804dfc70333b3e12903b4d945a5 /libexec
parent07e9f5afcafa05803364f4238c2794141edf058c (diff)
downloadFreeBSD-src-1e78a65d3aa6589373dc4e14d475393e9a7f984c.zip
FreeBSD-src-1e78a65d3aa6589373dc4e14d475393e9a7f984c.tar.gz
Fixed a misspelling of 0 as NULL.
Diffstat (limited to 'libexec')
-rw-r--r--libexec/getty/chat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libexec/getty/chat.c b/libexec/getty/chat.c
index 4faae72..8256bb1 100644
--- a/libexec/getty/chat.c
+++ b/libexec/getty/chat.c
@@ -355,7 +355,7 @@ chat_expect(const char *str)
/* See if we can resync on a
* partial match in our buffer
*/
- while (j < i && memcmp(got + j, str, i - j) != NULL)
+ while (j < i && memcmp(got + j, str, i - j) != 0)
j++;
if (j < i)
memcpy(got, got + j, i - j);
OpenPOWER on IntegriCloud