Changeset 1009 for trunk/dll/seeall.c


Ignore:
Timestamp:
May 10, 2008, 9:51:58 AM (17 years ago)
Author:
Steven Levine
Message:

Add xfree xstrdup Fortify support
Add MT capable Fortify scope logic

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/seeall.c

    r985 r1009  
    13031303  if (ad->afhead && ad->afheadcnt) {
    13041304    for (x = 0; x < ad->afheadcnt; x++) {
    1305       xfree(ad->afhead[x].fullname);
    1306     }
    1307     xfree(ad->afhead);
     1305      xfree(ad->afhead[x].fullname, pszSrcFile, __LINE__);
     1306    }
     1307    xfree(ad->afhead, pszSrcFile, __LINE__);
    13081308    ad->afhead = NULL;
    1309     xfree(ad->afindex);
     1309    xfree(ad->afindex, pszSrcFile, __LINE__);
    13101310    ad->afindex = NULL;
    13111311  }
     
    18611861          pAD->ullSelectedBytes -= pAD->afhead[y].cbFile;
    18621862        }
    1863         xfree(pAD->afhead[y].fullname);
     1863        xfree(pAD->afhead[y].fullname, pszSrcFile, __LINE__);
    18641864      }
    18651865      memmove(&(pAD->afhead[x]), &(pAD->afhead[y]),
     
    19201920  pffbArray = xmalloc(ulBufBytes, pszSrcFile, __LINE__);
    19211921  if (!pffbArray) {
    1922     xfree(filename);
     1922    xfree(filename, pszSrcFile, __LINE__);
    19231923    return;
    19241924  }
     
    19581958            // Complain if pathnames exceeds max
    19591959            DosFindClose(hdir);
    1960             xfree(pffbArray);
    1961             xfree(filename);
     1960            xfree(pffbArray, pszSrcFile, __LINE__);
     1961            xfree(filename, pszSrcFile, __LINE__);
    19621962            if (!fDone) {
    19631963              fDone = TRUE;
     
    20262026  }
    20272027
    2028   xfree(pffbArray);
    2029   xfree(filename);
     2028  xfree(pffbArray, pszSrcFile, __LINE__);
     2029  xfree(filename, pszSrcFile, __LINE__);
    20302030}
    20312031
     
    25842584    // fprintf(stderr,"Seeall: UM_SETUP5\n");
    25852585    if (pAD) {
    2586       if (mp1 && *((CHAR *) mp1))
    2587         strcpy(pAD->szFindPath, (CHAR *) mp1);
     2586      if (mp1 && *((CHAR *)mp1))
     2587        strcpy(pAD->szFindPath, (CHAR *)mp1);
    25882588      else {
    25892589        if (!WinDlgBox(HWND_DESKTOP, hwnd, AFDrvsWndProc,
     
    27282728        if (mp2) {
    27292729          strcat(s, " ");
    2730           strcat(s, (CHAR *) mp2);
     2730          strcat(s, (CHAR *)mp2);
    27312731        }
    27322732        WinSetWindowText(pAD->hwndStatus, s);
     
    27442744          if (mp2) {
    27452745            strcat(s, " ");
    2746             strcat(s, (CHAR *) mp2);
     2746            strcat(s, (CHAR *)mp2);
    27472747          }
    27482748        }
     
    42674267      }
    42684268      FreeAllFilesList(hwnd);
    4269       xfree(pAD);
     4269      xfree(pAD, pszSrcFile, __LINE__);
    42704270    }
    42714271    break;
Note: See TracChangeset for help on using the changeset viewer.