diff options
Diffstat (limited to 'libexec')
-rw-r--r-- | libexec/getty/chat.c | 2 |
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); |