From dab5d07355cb5e8ab2f01959b52adb077325a7d5 Mon Sep 17 00:00:00 2001 From: slguan Date: Wed, 25 Dec 2019 18:43:52 +0800 Subject: [PATCH] #1014 [TBASE-1376] --- src/util/src/tutil.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/src/tutil.c b/src/util/src/tutil.c index b24162ce5f..86e133df17 100644 --- a/src/util/src/tutil.c +++ b/src/util/src/tutil.c @@ -434,7 +434,7 @@ int tasoUcs4Compare(void* f1_ucs4, void *f2_ucs4, int bytes) { #endif #else - return wcsncmp((wchar_t *)f1_ucs4, (wchar_t *)f2_ucs4, bytes); + return wcsncmp((wchar_t *)f1_ucs4, (wchar_t *)f2_ucs4, bytes / TSDB_NCHAR_SIZE); #endif }