[vlc-commits] MP4: fix a typo

Jean-Baptiste Kempf git at videolan.org
Mon Sep 12 20:35:26 CEST 2011


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Mon Sep 12 20:34:35 2011 +0200| [80676aa4a6833ce7ec4196d6492ea01fd74422b4] | committer: Jean-Baptiste Kempf

MP4: fix a typo

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=80676aa4a6833ce7ec4196d6492ea01fd74422b4
---

 modules/demux/mp4/drms.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/demux/mp4/drms.c b/modules/demux/mp4/drms.c
index 489d287..d816758 100644
--- a/modules/demux/mp4/drms.c
+++ b/modules/demux/mp4/drms.c
@@ -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);



More information about the vlc-commits mailing list