list = list.append( "'" );
++range.first;
}
- asprintf( &psz_arguments, "%s", list.c_str() );
+ psz_arguments = strdup( list.c_str() );
}
break;
}
else
{
- if( asprintf( &psz_path,"%s", p_demux->psz_path ) == -1 )
+ psz_path = strdup( p_demux->psz_path );
+ if( psz_path == NULL )
return NULL;
}
else if( psz_artist )
i_ret = asprintf( &psz_tmp, "%s\n%s", psz_title, psz_artist );
else
- i_ret = asprintf( &psz_tmp, "%s", psz_title );
+ {
+ psz_tmp = strdup( psz_title );
+ if( psz_tmp == NULL )
+ i_ret = -1;
+ }
if( i_ret == -1 )
{