Removing some unnecessary calls to c_str(), and added str2wcstring(std::string) in common.cpp.

This commit is contained in:
Siteshwar Vashisht
2012-02-18 23:28:54 +05:30
parent c9f4e91df8
commit 7b3d670e23
7 changed files with 18 additions and 10 deletions

View File

@@ -713,7 +713,7 @@ static void exec_prompt()
{
proc_push_interactive( 0 );
if( exec_subshell( data->prompt.c_str(), prompt_list ) == -1 )
if( exec_subshell( data->prompt, prompt_list ) == -1 )
{
/* If executing the prompt fails, make sure we at least don't print any junk */
prompt_list.clear();