Patch #1 to Mtools v1.5

egray at fthood.UUCP egray at fthood.UUCP
Mon Nov 14 02:53:00 AEST 1988


Howdy netlanders!

This is patch #1 to Mtools v1.5.  It will fix a minor bug in mdir and
will allow the gnu C compiler to digest the code a wee bit better.

Many thanks to Andy Fyle (...!ames!elroy!cit-vax!andy) for finding these.

Emmet P. Gray				US Army, HQ III Corps & Fort Hood
...!uunet!uiucuxc!fthood!egray		Attn: AFZF-DE-ENV
					Directorate of Engineering & Housing
					Environmental Management Office
					Fort Hood, TX 76544-5057

-----------------------------------------------------------------------------
*** old/fixname.c	Sun Oct  9 13:16:04 1988
--- fixname.c	Sat Nov 12 17:03:30 1988
***************
*** 72,76
  	}
  	if (modified && verbose)
! 		printf("\"%s\" Contains illegal character\(s\), using \"%s.%s\"\n", filename, name, ext);
  
  	ans = malloc(12);

--- 72,76 -----
  	}
  	if (modified && verbose)
! 		printf("\"%s\" Contains illegal character(s), using \"%s.%s\"\n", filename, name, ext);
  
  	ans = malloc(12);
*** old/mdir.c	Sun Oct  9 13:18:10 1988
--- mdir.c	Sat Nov 12 17:32:12 1988
***************
*** 32,36
  	char *strncpy(), newpath[MAX_PATH], *getname(), *getpath(), *pathname;
  	char *newfile, *filename, *unixname(), volume[12], *sep;
! 	char *strcpy(), *strcat(), newname[MAX_PATH];
  	void exit(), reset_dir(), free();
  	struct directory *dir, *search();

--- 32,36 -----
  	char *strncpy(), newpath[MAX_PATH], *getname(), *getpath(), *pathname;
  	char *newfile, *filename, *unixname(), volume[12], *sep;
! 	char *strcpy(), *strcat(), newname[MAX_PATH], *strncat();
  	void exit(), reset_dir(), free();
  	struct directory *dir, *search();
***************
*** 53,57
  
  		strncpy(volume, (char *) dir->name, 8);
! 		strncpy(volume, (char *) dir->ext, 3);
  		volume[11] = '\0';
  		break;

--- 53,58 -----
  
  		strncpy(volume, (char *) dir->name, 8);
! 		volume[8] = '\0';
! 		strncat(volume, (char *) dir->ext, 3);
  		volume[11] = '\0';
  		break;
*** old/mtype.c	Sun Oct  9 13:20:08 1988
--- mtype.c	Sat Nov 12 17:03:15 1988
***************
*** 25,30
  long size;
  long current;
! stripmode = 0;
! textmode = 0;
  
  main(argc, argv)

--- 25,30 -----
  long size;
  long current;
! int stripmode = 0;
! int textmode = 0;
  
  main(argc, argv)



More information about the Unix-pc.sources mailing list