aboutsummaryrefslogtreecommitdiffhomepage
path: root/kill.c
diff options
context:
space:
mode:
authorGravatar axel <axel@liljencrantz.se>2005-10-07 20:36:51 +1000
committerGravatar axel <axel@liljencrantz.se>2005-10-07 20:36:51 +1000
commit8ff36deeb49e517ee076bb1a8db3d98adb6d7012 (patch)
tree85db57e65b96d0e2d02f12d8d6b2fcca1152ebb9 /kill.c
parentb11aa091429489d318228500031f256c9c1b9133 (diff)
API cleanup
darcs-hash:20051007103651-ac50b-3b518ce795adf2d39b8ebfcba6a2df7c36411b15.gz
Diffstat (limited to 'kill.c')
-rw-r--r--kill.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kill.c b/kill.c
index 86a6f34a..1ee62d13 100644
--- a/kill.c
+++ b/kill.c
@@ -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;