Fix order of arguments given to memchr().

Signed-off-by: Love Hornquist Astrand <lha@h5l.org>
This commit is contained in:
Patrik Lundin
2010-09-30 23:15:30 +02:00
committed by Love Hornquist Astrand
parent 3128a7a416
commit d5e4619738

View File

@@ -148,7 +148,7 @@ external_passwd_quality (krb5_context context,
char reply[1024]; char reply[1024];
FILE *in = NULL, *out = NULL, *error = NULL; FILE *in = NULL, *out = NULL, *error = NULL;
if (memchr(pwd->data, pwd->length, '\n') != NULL) { if (memchr(pwd->data, '\n', pwd->length) != NULL) {
snprintf(message, length, "password contains newline, " snprintf(message, length, "password contains newline, "
"not valid for external test"); "not valid for external test");
return 1; return 1;