X-Git-Url: http://git.ozlabs.org/?p=yaboot.git;a=blobdiff_plain;f=second%2Fyaboot.c;h=bf10b01c4db8029c3eaf86b7969576cca8bee6ab;hp=d7a3a20f1c0b0fccca199f4895e983e4d1dbca5e;hb=778a7e33cfa273b52c5b6256e61da1e00303d304;hpb=6f00a510abbfaa45b580cf5f371f0168ba662d3d diff --git a/second/yaboot.c b/second/yaboot.c index d7a3a20..bf10b01 100644 --- a/second/yaboot.c +++ b/second/yaboot.c @@ -111,7 +111,7 @@ static void setup_display(void); /* Locals & globals */ int useconf = 0; -char bootdevice[1024]; +char bootdevice[BOOTDEVSZ]; char *password = NULL; struct boot_fspec_t boot; int _machine = _MACH_Pmac; @@ -1474,10 +1474,10 @@ yaboot_main(void) if (_machine == _MACH_Pmac) setup_display(); - prom_get_chosen("bootpath", bootdevice, sizeof(bootdevice)); + prom_get_chosen("bootpath", bootdevice, BOOTDEVSZ); DEBUG_F("/chosen/bootpath = %s\n", bootdevice); if (bootdevice[0] == 0) { - prom_get_options("boot-device", bootdevice, sizeof(bootdevice)); + prom_get_options("boot-device", bootdevice, BOOTDEVSZ); DEBUG_F("boot-device = %s\n", bootdevice); } if (bootdevice[0] == 0) {