fdisk.c (0b461cd7de442d2fdc1ec09461c4d8ccda99284e) | fdisk.c (c48cef7def5773a6a69b5a25563838da57377c6d) |
---|---|
1/* 2 * Mach Operating System 3 * Copyright (c) 1992 Carnegie Mellon University 4 * All Rights Reserved. 5 * 6 * Permission to use, copy, modify and distribute this software and its 7 * documentation is hereby granted, provided that both the copyright 8 * notice and this permission notice appear in all copies of the --- 383 unchanged lines hidden (view full) --- 392 active = which; 393 if (!ok("Do you want to change the active partition?")) 394 return; 395 do 396 Decimal("active partition", active, tmp); 397 while (!ok("Are you happy with this choice")); 398 for (i = 0; i < NDOSPART; i++) 399 partp[i].dp_flag = 0; | 1/* 2 * Mach Operating System 3 * Copyright (c) 1992 Carnegie Mellon University 4 * All Rights Reserved. 5 * 6 * Permission to use, copy, modify and distribute this software and its 7 * documentation is hereby granted, provided that both the copyright 8 * notice and this permission notice appear in all copies of the --- 383 unchanged lines hidden (view full) --- 392 active = which; 393 if (!ok("Do you want to change the active partition?")) 394 return; 395 do 396 Decimal("active partition", active, tmp); 397 while (!ok("Are you happy with this choice")); 398 for (i = 0; i < NDOSPART; i++) 399 partp[i].dp_flag = 0; |
400 partp[active].dp_flag = ACTIVE; | 400 if (active >= 0 && active < NDOSPART) 401 partp[active].dp_flag = ACTIVE; |
401} 402 403get_params_to_use() 404{ 405 int tmp; 406 print_params(); 407 if (ok("Do you want to change our idea of what BIOS thinks ?")) 408 { --- 290 unchanged lines hidden --- | 402} 403 404get_params_to_use() 405{ 406 int tmp; 407 print_params(); 408 if (ok("Do you want to change our idea of what BIOS thinks ?")) 409 { --- 290 unchanged lines hidden --- |