[vlc-devel] commit: second parameter of streallocat must be const. ( Rémi Duraffort )

Rémi Denis-Courmont rem at videolan.org
Wed Oct 1 22:06:10 CEST 2008


Le mercredi 1 octobre 2008 22:57:09 git version control, vous avez écrit :
> @@ -236,9 +236,9 @@ char *XURL_GetSchemeAndHostname( char *psz_url )
>              strlen( psz_scheme ) + strlen( "://" ) +
>              strlen( psz_hostname ) + 1);
>      if( psz_scheme_and_hostname == NULL ) return NULL;
> -    (void) strcpy( psz_scheme_and_hostname, psz_scheme );
> -    (void) strcat( psz_scheme_and_hostname, "://" );
> -    (void) strcat( psz_scheme_and_hostname, psz_hostname );
> +    strcpy( psz_scheme_and_hostname, psz_scheme );
> +    strcat( psz_scheme_and_hostname, "://" );
> +    strcat( psz_scheme_and_hostname, psz_hostname );

also known as asprintf (&..., "%s://%s", ...);

-- 
Rémi Denis-Courmont
http://git.remlab.net/cgi-bin/gitweb.cgi?p=vlc-courmisch.git;a=summary



More information about the vlc-devel mailing list