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

    r1063 r1082  
    77
    88  Copyright (c) 1993-98 M. Kimes
    9   Copyright (c) 2004, 2006 Steven H.Levine
     9  Copyright (c) 2004, 2008 Steven H.Levine
    1010
    1111  01 Aug 04 SHL Rework lstrip/rstrip usage
     
    1414  03 Nov 06 SHL Count thread usage
    1515  20 Aug 07 GKY Move #pragma alloc_text to end for OpenWatcom compat
     16  19 Jul 08 GKY Replace save_dir2(dir) with pFM2SaveDirectory and use BldFullPathName
    1617
    1718***********************************************************************/
     
    3233#include "errutil.h"                    // Dos_Error...
    3334#include "strutil.h"                    // GetPString
     35#include "pathutil.h"                   // BldFullPathName
    3436#include "fm3dll.h"
    3537#include "fortify.h"
     
    540542              ViewHelp(p);
    541543            break;
    542           }
    543           save_dir2(filename);
     544          }
     545          BldFullPathName(filename, pFM2SaveDirectory, "FM2VINF.CMD");
     546          /*save_dir2(filename);
    544547          if (filename[strlen(filename) - 1] != '\\')
    545548            strcat(filename, "\\");
    546           strcat(filename, "FM2VINF.CMD");
     549          strcat(filename, "FM2VINF.CMD");*/
    547550          fp = xfopen(filename, "w", pszSrcFile, __LINE__);
    548551          if (fp) {
Note: See TracChangeset for help on using the changeset viewer.