8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5566da3 commit 9a918daCopy full SHA for 9a918da
disk-utils/cfdisk.c
@@ -947,6 +947,7 @@ static void menu_set_title(struct cfdisk_menu *m, const char *title)
947
m->width = len + MENU_TITLE_PADDING;
948
str = xstrdup(title);
949
}
950
+ free(m->title);
951
m->title = str;
952
953
@@ -2173,7 +2174,8 @@ static int ui_create_label(struct cfdisk *cf)
2173
2174
nitems = fdisk_get_nlabels(cf->cxt);
2175
cm = xcalloc(nitems + 1, sizeof(struct cfdisk_menuitem));
2176
- while (fdisk_next_label(cf->cxt, &lb) == 0) {
2177
+ while (fdisk_next_label(cf->cxt, &lb) == 0 && i < nitems) {
2178
+
2179
if (fdisk_label_is_disabled(lb) ||
2180
fdisk_label_get_type(lb) == FDISK_DISKLABEL_BSD)
2181
continue;
0 commit comments