[TD_543] fix coverity scan, cid:267750

This commit is contained in:
Shengliang Guan 2020-06-08 09:10:49 +00:00
parent 9e221b8a53
commit 73cdb81e12
1 changed files with 1 additions and 1 deletions

View File

@ -229,7 +229,7 @@ static void taosGetSystemLocale() { // get and set default locale
uError("can't get locale from system, set it to en_US.UTF-8");
strcpy(tsLocale, "en_US.UTF-8");
} else {
strncpy(tsLocale, locale, tListLen(tsLocale));
tstrncpy(tsLocale, locale, tListLen(tsLocale));
uError("locale not configured, set to system default:%s", tsLocale);
}
}