fix:locale error

This commit is contained in:
yihaoDeng 2024-12-10 16:16:38 +08:00
parent acd87db992
commit 85af6a9224
1 changed files with 1 additions and 2 deletions

View File

@ -87,8 +87,7 @@ int32_t taosSetSystemLocale(const char *inLocale) {
return terrno;
}
(void)memcpy(tsLocale, inLocale, strlen(inLocale) + 1);
tstrncpy(tsLocale, locale, TD_LOCALE_LEN);
return 0;
}