fix(txt): no need to add null ending after snprintf (#4265)

Signed-off-by: Xu Xingliang <xuxingliang@xiaomi.com>
This commit is contained in:
Neo Xu
2023-06-02 22:16:18 +08:00
committed by GitHub
parent 44958e017e
commit 93f4b90393

View File

@@ -488,7 +488,6 @@ char * _lv_txt_set_text_vfmt(const char * fmt, va_list ap)
if(text == NULL) {
return NULL;
}
text[len] = 0; /*Ensure NULL termination*/
lv_vsnprintf(text, len + 1, fmt, ap);
#endif