Re: Bug#30587: Boot-floppies 2.1.2 broken
On Fri, Dec 11, 1998 at 05:32:28PM +0100, Paolo Didonè wrote:
> I think the problem is in utilities/dinstall/select_not_mounted.c because of
this patch from lupus@debian.org should solve the problem:
---[ begin ]-------------------------------------------------------
--- select_not_mounted.c Sat Nov 28 11:20:52 1998
+++ patched/select_not_mounted.c Fri Dec 11 18:46:39 1998
@@ -42,8 +42,8 @@ select_not_mounted( const char *message,
plist[items]=p;
items++;
if ((items%5)==0) {
- realloc(choices,(items+5)*sizeof(struct d_choices));
- realloc(plist,(items+5)*sizeof(struct fdisk_partition *));
+ choices = realloc(choices,(items+5)*sizeof(struct d_choices));
+ plist = realloc(plist,(items+5)*sizeof(struct fdisk_partition *));
}
}
p = p->next_by_type;
@@ -60,8 +60,8 @@ select_not_mounted( const char *message,
plist[items]=p;
items++;
if ((items%5)==0) {
- realloc(choices,(items+5)*sizeof(struct d_choices));
- realloc(plist,(items+5)*sizeof(struct fdisk_partition *));
+ choices = realloc(choices,(items+5)*sizeof(struct d_choices));
+ plist = realloc(plist,(items+5)*sizeof(struct fdisk_partition *));
}
}
p = p->next;
@@ -77,7 +77,9 @@ select_not_mounted( const char *message,
problemBox(MSG_ERROR_NO_PARTITIONS,MSG_PROBLEM);
}
} else {
+ dinstall_log("menuBox in esecuzione");
rs = menuBox(message, title, choices, items, 1);
+ dinstall_log("menuBox eseguito");
if (rs != -1) {
p = plist[rs];
}
Reply to: