From: RĂ©mi Denis-Courmont Date: Mon, 13 Feb 2006 13:23:20 +0000 (+0000) Subject: Fix windows build X-Git-Tag: 0.9.0-test0~12359 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=1a3466cdee08c12062fa9853cfc577bb08604a7e;p=vlc Fix windows build --- diff --git a/modules/demux/mp4/drms.c b/modules/demux/mp4/drms.c index d66a9aa3b5..504c2baf63 100644 --- a/modules/demux/mp4/drms.c +++ b/modules/demux/mp4/drms.c @@ -1801,10 +1801,10 @@ static int GetSCIData( char *psz_ipod, uint32_t **pp_sci, strlen( p_tmp ) ) ); psz_path = FromLocale( p_tmp ); - strncpy( psz_tmp, sizeof( psz_tmp ) - 1, psz_path ); - psz_tmp[sizeof( psz_tmp ) - 1] = '\0'; + strncpy( p_tmp, psz_path, sizeof( p_tmp ) - 1 ); + p_tmp[sizeof( p_tmp ) - 1] = '\0'; LocaleFree( psz_path ); - psz_path = psz_tmp; + psz_path = p_tmp; } if( shfolder_dll != NULL )