Skip to content

Commit 12f3ce2

Browse files
committed
fix custom_labels_clone_with_capacity
1 parent d34dd2f commit 12f3ce2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/customlabels.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ static int custom_labels_label_clone(custom_labels_label_t lbl, custom_labels_la
355355
}
356356

357357
custom_labels_labelset_t *custom_labels_clone_with_capacity(const custom_labels_labelset_t *ls, size_t capacity) {
358-
custom_labels_labelset_t *new_ = custom_labels_new(ls->count);
358+
custom_labels_labelset_t *new_ = custom_labels_new(capacity);
359359
if (!new_)
360360
return NULL;
361361
for (size_t i = 0; i < ls->count; ++i) {

0 commit comments

Comments
 (0)