Ignore:
Timestamp:
May 23, 2019 6:30:13 AM (2 months ago)
Author:
stefan
Message:

revert r2472 and extend temp array in CoinReadPrintit?

  • and add assert
  • fixes #230
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Clp/src/CbcOrClpParam.cpp

    r2472 r2473  
    458458{
    459459  int length = static_cast< int >(strlen(input));
    460   char temp[101];
     460  assert(length <= 1000);
     461  char temp[1001];
    461462  int i;
    462463  int n = 0;
     
    27162717    p.append("forceOn");
    27172718    p.setLonghelp(
     2719      "These cuts may be expensive to compute. "
    27182720      CUTS_LONGHELP
    2719       "These cuts may be expensive to compute. \
    2720        Reference: https://github.com/coin-or/Cgl/wiki/CglLandP");
     2721      " Reference: https://github.com/coin-or/Cgl/wiki/CglLandP");
    27212722    parameters.push_back(p);
    27222723  }
     
    35903591    p.append("forceOn");
    35913592    p.setLonghelp(
     3593      "These cuts may be expensive to generate. "
    35923594      CUTS_LONGHELP
    3593       "These cuts may be expensive to generate. \
    3594       Reference: https://github.com/coin-or/Cgl/wiki/CglRedSplit");
     3595      " Reference: https://github.com/coin-or/Cgl/wiki/CglRedSplit");
    35953596    parameters.push_back(p);
    35963597  }
Note: See TracChangeset for help on using the changeset viewer.