Changeset 1011 for trunk/eas.c


Ignore:
Timestamp:
May 11, 2008, 5:00:39 AM (17 years ago)
Author:
Gregg Young
Message:

Fortify updates to get it working everywhere

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/eas.c

    r1010 r1011  
    2727#include "dll\fm3dll.h"
    2828
     29static PSZ pszSrcFile = __FILE__;
     30
    2931int main (int argc,char *argv[])
    3032{
     
    5254        if (!list) {
    5355          strcpy(fullname, "*");
    54           list = malloc(sizeof(CHAR *) * 2);
     56          list = xmalloc(sizeof(CHAR *) * 2, pszSrcFile, __LINE__);
    5557          if (list &&
    5658              insert_filename(HWND_DESKTOP,fullname,TRUE,FALSE) &&
    5759              *fullname && *fullname != '*') {
    58             list[0] = fullname;
    59             list[1] = NULL;
     60           list[0] = fullname;
     61           list[1] = NULL;
    6062          }
    6163        }
     
    7476  }
    7577  if (list)
    76     free(list);
     78    xfree(list, pszSrcFile, __LINE__);
    7779  return 0;
    7880}
Note: See TracChangeset for help on using the changeset viewer.