Changeset 1082 for trunk/dll/dirsize.c


Ignore:
Timestamp:
Jul 20, 2008, 12:37:36 AM (17 years ago)
Author:
Gregg Young
Message:

Changes so FM2 will use TMP/TEMP directory for all temp files; Replaced save_dir2 with global variable so BldFullPathName could easily replace code that performed the same function; Added #ifdef FORTIFY to free_ function that are only used when fortified.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/dirsize.c

    r1067 r1082  
    77
    88  Copyright (c) 1993-98 M. Kimes
    9   Copyright (c) 2001, 2007 Steven H. Levine
     9  Copyright (c) 2001, 2008 Steven H. Levine
    1010
    1111  16 Oct 02 SHL Handle large partitions
     
    3434  29 Feb 08 GKY Add presparams & update appearence of "Sizes" dialog
    3535  07 Jul 08 GKY Fixed trap in PMCTLS (strlen) inadequate memory allocation
    36   07 Jul o8 GKY Fixed trap by no longer allocating pci->pszLongName as flag but pointing isroot
     36  07 Jul 08 GKY Fixed trap by no longer allocating pci->pszLongName as flag but pointing isroot
    3737                version to NullStr and all others to NULL.
     38  19 Jul 08 GKY Replace save_dir2(dir) with pFM2SaveDirectory; use pTmpDir for temp files
    3839
    3940***********************************************************************/
     
    927928        FILE *fp;
    928929
    929         save_dir2(szFileName);
     930        if (pTmpDir)
     931          strcpy(szFileName, pTmpDir);
     932        else
     933          strcpy(szFileName, pFM2SaveDirectory);
     934        //save_dir2(szFileName);
    930935        sprintf(&szFileName[strlen(szFileName)], "\\%csizes.Rpt",
    931936                (pState) ? toupper(*pState->szDirName) : '+');
Note: See TracChangeset for help on using the changeset viewer.