*** /tmp/,RCSt1a26646	Wed Apr 25 17:18:31 1990
--- mkdfs.c	Wed Apr 25 17:16:46 1990
***************
*** 9,15 ****
  	 * table parsing routines etc.,  not too hard,  just unpleasant.
  	 */
  	main() {
! 		printf("Do not know how to format disks on your system\n";
  		exit(1) ;
  	}
  #else
--- 9,15 ----
  	 * table parsing routines etc.,  not too hard,  just unpleasant.
  	 */
  	main() {
! 		printf("Do not know how to format disks on your system\n");
  		exit(1) ;
  	}
  #else
***************
*** 24,33 ****
  #include "bootblk.h"
  
  #define VOLLBL 0x8
! #define FAT720 0xf9
! #define FAT1440 0xf0
  static char floppy[] = "/dev/rfd0c" ;
! char disklabel[12] = "" ;
  
  void move(), Write(), usage(), formatit() ;
  
--- 24,33 ----
  #include "bootblk.h"
  
  #define VOLLBL 0x8
! #define FAT 0xf9
! 
  static char floppy[] = "/dev/rfd0c" ;
! static char disklabel[12] ;
  
  void move(), Write(), usage(), formatit() ;
  
***************
*** 38,44 ****
  {
    int c, fd, sec ;
    int fat_len = 3 ;
!   int fat = FAT720 ;
    int dir_len = 7 ;
    int hdflag=0, fflag = 0 ;
    extern char *optarg;
--- 38,44 ----
  {
    int c, fd, sec ;
    int fat_len = 3 ;
!   int fat = FAT ;
    int dir_len = 7 ;
    int hdflag=0, fflag = 0 ;
    extern char *optarg;
***************
*** 45,50 ****
--- 45,53 ----
  
    progname = argv[0] ;
  
+   /* Initialize with spaces */
+   sprintf(disklabel,"%-11.11s","") ;
+ 
    while( (c=getopt(argc,argv,"hfl:")) != EOF ) {
      switch(c) {
      case 'f' :
***************
*** 54,60 ****
        hdflag++ ;
        break;
      case 'l' :
!       strncpy(disklabel, optarg, 11) ;
        break;
      case '?':
      default:
--- 57,63 ----
        hdflag++ ;
        break;
      case 'l' :
!       sprintf(disklabel,"%-11.11s",optarg) ;
        break;
      case '?':
      default:
***************
*** 77,83 ****
    if ( hdflag ) {
      dir_len=14 ;
      fat_len=9 ;
-     fat=FAT1440 ;
    }
    
    bzero(buf,sizeof(buf)) ;
--- 80,85 ----
*** /tmp/,RCSt1a26649	Wed Apr 25 17:18:59 1990
--- bootblk.h	Mon Apr 23 13:47:39 1990
***************
*** 6,17 ****
   * and make sure to create the "hidden" files in mkdfs.c
   * (this is not easy!)
   */
! static unsigned short hdboot[] = {
! 0xeb34,0x9020,0x2020,0x2020,0x2020,0x2000,0x0201,0x0100,
! 0x02e0,0x0040,0x0bf0,0x0900,0x1200,0x0200,0x0000,0x0000,
  } ;
  
! static unsigned short ldboot[] = {
! 0xeb34,0x9020,0x2020,0x2020,0x2020,0x2000,0x0202,0x0100,
! 0x0270,0x00a0,0x05f9,0x0300,0x0900,0x0200,0x0000,0x0000,
  } ;
--- 6,17 ----
   * and make sure to create the "hidden" files in mkdfs.c
   * (this is not easy!)
   */
! static unsigned char hdboot[] = {
! 0xeb,0x34,0x90,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x00,0x02,0x01,0x01,0x00,
! 0x02,0xe0,0x00,0x40,0x0b,0xf9,0x09,0x00,0x12,0x00,0x02,0x00,0x00,0x00,0x00,0x00,
  } ;
  
! static unsigned char ldboot[] = {
! 0xeb,0x34,0x90,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x00,0x02,0x02,0x01,0x00,
! 0x02,0x70,0x00,0xa0,0x05,0xf9,0x03,0x00,0x09,0x00,0x02,0x00,0x00,0x00,0x00,0x00,
  } ;
