Qt4: fix buffer overflow
authorRémi Denis-Courmont <remi@remlab.net>
Tue, 8 Dec 2009 16:33:35 +0000 (18:33 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Tue, 8 Dec 2009 20:03:55 +0000 (22:03 +0200)
modules/gui/qt4/qt4.cpp

index 4cb7d1c..b84815e 100644 (file)
@@ -345,7 +345,7 @@ static void *Thread( void *obj )
     intf_thread_t *p_intf = (intf_thread_t *)obj;
     MainInterface *p_mi;
     char dummy[] = "vlc"; /* for WM_CLASS */
-    char *argv[] = { dummy, NULL, };
+    char *argv[4] = { dummy, NULL, };
     int argc = 1;
 
     Q_INIT_RESOURCE( vlc );