Changeset 1082 for trunk/dll/assoc.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/assoc.c

    r1039 r1082  
    1818  29 Feb 08 GKY Changes to enable user settable command line length
    1919  29 Feb 08 GKY Use xfree where appropriate
     20  19 Jul 08 GKY Replace save_dir2(dir) with pFM2SaveDirectory and use BldFullPathName
    2021
    2122**************************************************************************************/
     
    142143    free_associations();
    143144  assloaded = TRUE;
    144   save_dir2(mask);
     145  BldFullPathName(mask, pFM2SaveDirectory, "ASSOC.DAT");
     146  /*save_dir2(mask);
    145147  if (mask[strlen(mask) - 1] != '\\')
    146148    strcat(mask, "\\");
    147   strcat(mask, "ASSOC.DAT");
     149  strcat(mask, "ASSOC.DAT");*/
    148150  fp = _fsopen(mask, "r", SH_DENYWR);
    149151  pszCmdLine = xmallocz(MaxComLineStrg, pszSrcFile, __LINE__);
     
    267269  }
    268270#endif
    269   save_dir2(s);
     271  /*save_dir2(s);
    270272  if (s[strlen(s) - 1] != '\\')
    271273    strcat(s, "\\");
    272   strcat(s, "ASSOC.DAT");
     274    strcat(s, "ASSOC.DAT");*/
     275  BldFullPathName(s, pFM2SaveDirectory, "ASSOC.DAT");
    273276  fp = xfopen(s, "w", pszSrcFile, __LINE__);
    274277  if (fp) {
Note: See TracChangeset for help on using the changeset viewer.