From dcc23a24d0c49e4b619bafc40b7e6ee487f8dd34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Sat, 14 Oct 2006 09:41:05 +0000 Subject: [PATCH] Match the prompt type PROMPT exact. git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18452 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/hx509/lock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/hx509/lock.c b/lib/hx509/lock.c index b6f962129..462480481 100644 --- a/lib/hx509/lock.c +++ b/lib/hx509/lock.c @@ -234,7 +234,7 @@ hx509_lock_command_string(hx509_lock lock, const char *string) { if (strncasecmp(string, "PASS:", 5) == 0) { hx509_lock_add_password(lock, string + 5); - } else if (strncasecmp(string, "PROMPT", 6) == 0) { + } else if (strcasecmp(string, "PROMPT") == 0) { hx509_lock_set_prompter(lock, default_prompter, NULL); } else return HX509_UNKNOWN_LOCK_COMMAND;