fix(table): fix issue with abnormal string output of 'lv_table_set_cell_value_fmt' (#4787)

This commit is contained in:
lhdjply
2023-11-14 16:50:52 +08:00
committed by GitHub
parent faeb7c48e0
commit 8328c579c6
+1 -1
View File
@@ -187,7 +187,7 @@ void lv_table_set_cell_value_fmt(lv_obj_t * obj, uint32_t row, uint32_t col, con
table->cell_data[cell]->txt[len] = 0; /*Ensure NULL termination*/
lv_vsnprintf(table->cell_data[cell]->txt, len, fmt, ap2);
lv_vsnprintf(table->cell_data[cell]->txt, len + 1, fmt, ap2);
#endif
va_end(ap2);