diff options
author | axel <axel@liljencrantz.se> | 2005-10-07 20:36:51 +1000 |
---|---|---|
committer | axel <axel@liljencrantz.se> | 2005-10-07 20:36:51 +1000 |
commit | 8ff36deeb49e517ee076bb1a8db3d98adb6d7012 (patch) | |
tree | 85db57e65b96d0e2d02f12d8d6b2fcca1152ebb9 /kill.c | |
parent | b11aa091429489d318228500031f256c9c1b9133 (diff) |
API cleanup
darcs-hash:20051007103651-ac50b-3b518ce795adf2d39b8ebfcba6a2df7c36411b15.gz
Diffstat (limited to 'kill.c')
-rw-r--r-- | kill.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -95,7 +95,7 @@ void kill_add( wchar_t *str ) wchar_t *disp; if( (disp = env_get( L"DISPLAY" )) ) { - wchar_t *escaped_str = expand_escape( wcsdup(str), 1 ); + wchar_t *escaped_str = expand_escape( str, 1 ); wchar_t *cmd = wcsdupcat2(L"echo ", escaped_str, L"|xsel -b",0); exec_subshell( cmd, 0 ); free( cut_buffer ); @@ -137,7 +137,7 @@ static void kill_check_x_buffer() for( i=0; i<al_get_count( &list ); i++ ) { - wchar_t *next_line = expand_escape(wcsdup(al_get( &list, i )), 0); + wchar_t *next_line = expand_escape( (wchar_t *)al_get( &list, i ), 0); if( i==0 ) { new_cut_buffer = next_line; |