summaryrefslogtreecommitdiff
path: root/libexec/getty/chat.c
diff options
context:
space:
mode:
authorBruce Evans <bde@FreeBSD.org>2004-03-14 05:27:26 +0000
committerBruce Evans <bde@FreeBSD.org>2004-03-14 05:27:26 +0000
commit2dc8d58f59cea2ddb81d33315d788053cc29dcdf (patch)
tree285d06553b104804dfc70333b3e12903b4d945a5 /libexec/getty/chat.c
parent43a6c75a7ac2bdcaadcb2b4c651e4fc67c89f4dc (diff)
Notes
Diffstat (limited to 'libexec/getty/chat.c')
-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 4faae72cdd82..8256bb13fb6c 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);