Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 20, 2009, 4:27:38 PM (15 years ago)
Author:
scheusso
Message:

merged netp4 back to trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/core/ConsoleCommandCompilation.cc

    r3196 r3198  
    7373
    7474        // Iterate through the file and put the lines into the CommandExecutor
    75         char line[1024];
    7675        while (file.good() && !file.eof())
    7776        {
    78             file.getline(line, 1024);
     77            std::string line;
     78            std::getline(file, line);
    7979            CommandExecutor::execute(line);
    8080        }
     
    144144
    145145        std::string output = "";
    146         char line[1024];
    147146        while (file.good() && !file.eof())
    148147        {
    149             file.getline(line, 1024);
     148            std::string line;
     149            std::getline(file, line);
    150150            output += line;
    151151            output += "\n";
Note: See TracChangeset for help on using the changeset viewer.