]> git.sesse.net Git - vlc/blobdiff - modules/demux/mp4/drms.c
MP4: fix a typo
[vlc] / modules / demux / mp4 / drms.c
index 489d287d470e02721c144d023adc01db433238c5..d816758b55f83a887241bb102d6c608f9f21a356 100644 (file)
@@ -1566,7 +1566,7 @@ static int GetSCIData( char *psz_ipod, uint32_t **pp_sci,
 #ifdef WIN32
         const char *SCIfile =
         "\\Apple Computer\\iTunes\\SC Info\\SC Info.sidb";
-        strncpy(p_tmp, config_GetConfDir(), sizeof(p_tmp -1));
+        strncpy( p_tmp, config_GetConfDir(), sizeof(p_tmp) - 1 );
         if( strlen( p_tmp ) + strlen( SCIfile ) >= PATH_MAX )
             return -1;
         strcat(p_tmp, SCIfile);