-/* $OpenBSD: cmd.c,v 1.175 2023/04/09 17:19:59 krw Exp $ */
+/* $OpenBSD: cmd.c,v 1.176 2023/04/10 19:44:43 krw Exp $ */
/*
* Copyright (c) 1997 Tobias Weingartner
dflt = PRT_uuid_to_menudflt(olduuid);
if (dflt == NULL) {
- if (asprintf(&dflt, "0") == -1) {
+ if (asprintf(&dflt, "00") == -1) {
warn("asprintf()");
goto done;
}
-/* $OpenBSD: part.c,v 1.154 2023/04/09 17:19:59 krw Exp $ */
+/* $OpenBSD: part.c,v 1.155 2023/04/10 19:44:43 krw Exp $ */
/*
* Copyright (c) 1997 Tobias Weingartner
continue;
free(dflt);
dflt = NULL;
- if (asprintf(&dflt, "%X", menu_items[i].mi_menuid) == -1)
+ if (asprintf(&dflt, "%02X", menu_items[i].mi_menuid) == -1)
return NULL;
}