[vlc-devel] commit: Fix invalid free on non-UTF-8 locales ( Rémi Denis-Courmont )

git version control git at videolan.org
Mon Oct 5 21:44:33 CEST 2009


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Oct  5 22:40:00 2009 +0300| [5450e850793374c18e25ccc4e63660f110d61ce4] | committer: Rémi Denis-Courmont 

Fix invalid free on non-UTF-8 locales

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

 bin/vlc.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/bin/vlc.c b/bin/vlc.c
index e752b05..a80a918 100644
--- a/bin/vlc.c
+++ b/bin/vlc.c
@@ -165,7 +165,7 @@ int main( int i_argc, const char *ppsz_argv[] )
         libvlc_release (vlc);
     }
 
-    for (int i = 0; i < argc; i++)
+    for (int i = 1; i < argc; i++)
         LocaleFree (argv[i]);
 
     return vlc == NULL || libvlc_exception_raised (&ex);




More information about the vlc-devel mailing list