From b4ba1252cb820fe164d819e752cd8139dc1ff30a Mon Sep 17 00:00:00 2001 From: Pekka Riikonen Date: Mon, 11 Sep 2006 15:05:33 +0000 Subject: [PATCH] silc_utf8_strncasecmp length arg fix. --- lib/silcutil/silcutf8.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/silcutil/silcutf8.c b/lib/silcutil/silcutf8.c index cffbf2e1..0ecc999c 100644 --- a/lib/silcutil/silcutf8.c +++ b/lib/silcutil/silcutf8.c @@ -566,14 +566,14 @@ SilcBool silc_utf8_strncasecmp(const char *s1, const char *s2, SilcUInt32 n) return TRUE; /* Casefold and normalize */ - status = silc_stringprep(s1, strlen(s1), SILC_STRING_UTF8, + status = silc_stringprep(s1, n, SILC_STRING_UTF8, SILC_IDENTIFIERC_PREP, 0, &s1u, &s1u_len, SILC_STRING_UTF8); if (status != SILC_STRINGPREP_OK) return FALSE; /* Casefold and normalize */ - status = silc_stringprep(s2, strlen(s2), SILC_STRING_UTF8, + status = silc_stringprep(s2, n, SILC_STRING_UTF8, SILC_IDENTIFIERC_PREP, 0, &s2u, &s2u_len, SILC_STRING_UTF8); if (status != SILC_STRINGPREP_OK) -- 2.24.0