Browse Source

fixed linuxrc to not seg-fault with more then 10 floppies or cd-roms

git-svn-id: http://www.rocklinux.org/svn/rock-linux/trunk@2076 c5f82cb5-29bc-0310-9cd0-bff59a50e3bc
rocklinux
Rene Rebe 21 years ago
parent
commit
e51e91445a
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      target/bootdisk/linuxrc.c

+ 1
- 1
target/bootdisk/linuxrc.c

@ -230,7 +230,7 @@ void load_ramdisk_file()
printf("Select a device for loading the 2nd stage system from: \n\n");
for (i = 0; i < 2; i++) {
for (tmp_nr = 0; ; ++tmp_nr) {
for (tmp_nr = 0; tmp_nr < 10; ++tmp_nr) {
sprintf(devicefile, devicelists[i], tmp_nr);
sprintf(text, devicenames[i], tmp_nr+1);

Loading…
Cancel
Save