diff --git a/src/lv_misc/lv_ll.h b/src/lv_misc/lv_ll.h index 2c02eb480..03b3cdf3d 100644 --- a/src/lv_misc/lv_ll.h +++ b/src/lv_misc/lv_ll.h @@ -131,6 +131,14 @@ void * lv_ll_get_prev(const lv_ll_t * ll_p, const void * n_act); */ uint32_t lv_ll_get_len(const lv_ll_t * ll_p); +/** + * TODO + * @param ll_p + * @param n1_p + * @param n2_p + */ +void lv_ll_swap(lv_ll_t * ll_p, void * n1_p, void * n2_p); + /** * Move a nodw before an other node in the same linked list * @param ll_p pointer to a linked list diff --git a/src/lv_objx/lv_label.c b/src/lv_objx/lv_label.c index 3a1f92663..a9073ca00 100644 --- a/src/lv_objx/lv_label.c +++ b/src/lv_objx/lv_label.c @@ -905,7 +905,7 @@ void lv_label_ins_text(lv_obj_t * label, uint32_t pos, const char * txt) } #if LV_USE_BIDI - char * bidi_buf = lv_mem_alloc(ins_len) + 1; + char * bidi_buf = lv_mem_alloc(ins_len + 1); LV_ASSERT_MEM(bidi_buf); if(bidi_buf == NULL) return;