Changeset 11038 for trunk/FACT++/src


Ignore:
Timestamp:
06/16/11 19:40:34 (13 years ago)
Author:
tbretz
Message:
Make sure the pointer passed to rl_readline_name is kept valid.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/Readline.cc

    r10976 r11038  
    6262#include <readline/history.h>
    6363
     64#include <boost/filesystem.hpp>
     65
    6466#include "tools.h"
    6567
     
    106108
    107109    // Program name
    108     rl_readline_name = prgname;
     110    static const string fname = boost::filesystem::path(prgname).filename();
     111    rl_readline_name = fname.c_str();
    109112
    110113    // Compile filename for history file
Note: See TracChangeset for help on using the changeset viewer.