]> git.sesse.net Git - vlc/commitdiff
Fix windows build
authorRémi Denis-Courmont <rem@videolan.org>
Mon, 13 Feb 2006 13:23:20 +0000 (13:23 +0000)
committerRémi Denis-Courmont <rem@videolan.org>
Mon, 13 Feb 2006 13:23:20 +0000 (13:23 +0000)
modules/demux/mp4/drms.c

index d66a9aa3b540197c4f42f3527743cf4570d7e740..504c2baf63eb444d1f14221f1f78faf61c01dd46 100644 (file)
@@ -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 )