diff --git a/source/client/src/clientSml.c b/source/client/src/clientSml.c index 8b5712a6199c1ec3557462da8d90d36fff113cb7..85cd0661e3a02aa0a7322571209f92d17ae35dd6 100644 --- a/source/client/src/clientSml.c +++ b/source/client/src/clientSml.c @@ -147,7 +147,7 @@ static int smlCompareKv(const void* p1, const void* p2) { SSmlKv* kv2 = (SSmlKv*)p2; int32_t kvLen1 = kv1->keyLen; int32_t kvLen2 = kv2->keyLen; - int32_t res = strncasecmp(kv1->key, kv2->key, MIN(kvLen1, kvLen2)); + int32_t res = strncasecmp(kv1->key, kv2->key, TMIN(kvLen1, kvLen2)); if (res != 0) { return res; } else {