sep = "";
if (!prefix)
prefix = "";
- else if (prefix[strlen(prefix)] != '/')
+ else if ((prefix[strlen(prefix) - 1] != '/') &&
+ (value[0] != '/'))
sep = "/";
return talloc_asprintf(ctx, "%s%s%s", prefix, sep, value);
static int pad_height(int blockdevs_height)
{
- return 10 + blockdevs_height;
+ return 10 + (2 * blockdevs_height);
}
static void boot_editor_layout_widgets(struct boot_editor *boot_editor)