aboutsummaryrefslogtreecommitdiffstats
path: root/agent/genkey.c
diff options
context:
space:
mode:
Diffstat (limited to 'agent/genkey.c')
-rw-r--r--agent/genkey.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/agent/genkey.c b/agent/genkey.c
index 5a25d4771..9396e54d5 100644
--- a/agent/genkey.c
+++ b/agent/genkey.c
@@ -84,7 +84,7 @@ check_passphrase_constraints (ctrl_t ctrl, const char *pw)
if (!pw)
pw = "";
- if (strlen (pw) < minlen ) /* FIXME: should be an utf-8 length. */
+ if (utf8_charcount (pw) < minlen )
{
char *desc = xtryasprintf
( ngettext ("Warning: You have entered a passphrase that%%0A"