Escape semicolons and other chars that have syntactic meaning in various shell command situations

darcs-hash:20060214114739-ac50b-17616bf01a0504041c0d29ee9428abd8a9f9ad3a.gz
This commit is contained in:
axel 2006-02-14 21:47:39 +10:00
parent c595448f9c
commit 73d84fe136
2 changed files with 2 additions and 2 deletions

View file

@ -815,7 +815,7 @@ static const wchar_t *complete_get_desc_suffix( const wchar_t *suff_orig )
}
}
wchar_t *tmp = escape( suff, 0 );
wchar_t *tmp = escape( suff, 1 );
free(suff);
suff = tmp;

View file

@ -450,7 +450,7 @@ static void event_fire_internal( event_t *event )
for( j=0; j<al_get_count(&event->arguments); j++ )
{
wchar_t *arg_esc = escape( (wchar_t *)al_get( &event->arguments, j), 0 );
wchar_t *arg_esc = escape( (wchar_t *)al_get( &event->arguments, j), 1 );
sb_append( b, L" " );
sb_append( b, arg_esc );
free( arg_esc );