Changeset 989 for trunk/dll/systemf.c


Ignore:
Timestamp:
Mar 2, 2008, 12:34:12 AM (17 years ago)
Author:
Gregg Young
Message:

Refactor fm3dll.h to create command.h; broken ini is now replaced with backup or new ini as available; more variable command line ledth changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/systemf.c

    r985 r989  
    9393    return -1;
    9494  }
    95   commandline = xmalloc(MaxComLineStrg, pszSrcFile, __LINE__);
     95  commandline = xmalloc(MaxComLineStrg + 1, pszSrcFile, __LINE__);
    9696  if (!commandline)
    9797    return -1; //already complained
     
    466466            case 'R':
    467467            case 'r':
    468               if (pp + strlen(list[x]) > commandline + 1250)
     468              if (pp + strlen(list[x]) > commandline + MaxComLineStrg)
    469469                goto BreakOut;
    470470              if (*(p + 1) == 'r') {
     
    482482              if (*(p + 1) == 'F' && dot)
    483483                *dot = 0;
    484               if (pp + strlen(file) > commandline + 1250)
     484              if (pp + strlen(file) > commandline + MaxComLineStrg)
    485485                goto BreakOut;
    486486              if (needs_quoting(file)) {
     
    505505            case 'A':
    506506            case 'a':
    507               if (pp + strlen(list[x]) > commandline + 1250)
     507              if (pp + strlen(list[x]) > commandline + MaxComLineStrg)
    508508                goto BreakOut;
    509509              if (needs_quoting(list[x]) && !strchr(list[x], '\"')) {
     
    534534            case 'e':
    535535              if (ext) {
    536                 if (pp + strlen(ext) > commandline + 1250)
     536                if (pp + strlen(ext) > commandline + MaxComLineStrg)
    537537                  goto BreakOut;
    538538                if (needs_quoting(ext)) {
Note: See TracChangeset for help on using the changeset viewer.