Changeset 763 for trunk/dll/autoview.c


Ignore:
Timestamp:
Aug 5, 2007, 2:16:17 AM (18 years ago)
Author:
Gregg Young
Message:

Replaced sprintf path building with BldFullPathName at functions for quoting path and file names

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/autoview.c

    r689 r763  
    412412
    413413            static FILEFINDBUF4 ffb[130];
    414             static char fullname[CCHMAXPATH + 4];
     414            CHAR fullname[CCHMAXPATH + 4];
     415            PSZ pszFullName = fullname, pszCurrFile = currfile, psz;
    415416            HDIR hdir = HDIR_CREATE;
    416417            ULONG x, nm, ml, mc, bufflen;
    417418            PBYTE fb;
    418419            PFILEFINDBUF4 pffbFile;
    419             char *buff, *p;
    420             APIRET rc;
    421 
    422             sprintf(fullname,
    423                     "%s%s*",
    424                     currfile,
    425                     (currfile[strlen(currfile) - 1] == '\\') ? "" : "\\");
     420            CHAR *buff, *p = "*";
     421            APIRET rc;
     422
     423            psz = p;
     424            BldFullPathName(pszFullName, pszCurrFile, psz);
     425            *p = 0;
     426            //sprintf(fullname,
     427            //        "%s%s*",
     428            //        currfile,
     429            //        (currfile[strlen(currfile) - 1] == '\\') ? "" : "\\");
    426430            DosError(FERR_DISABLEHARDERR);
    427431            nm = sizeof(ffb) / sizeof(FILEFINDBUF4);
Note: See TracChangeset for help on using the changeset viewer.