[vlc-commits] Qt: do not hard-code argv table size
Rémi Denis-Courmont
git at videolan.org
Thu Jul 5 17:35:18 CEST 2012
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Jul 5 17:28:54 2012 +0300| [a6f0eddb4916d0147a112332cb4e658ada5a37c6] | committer: Rémi Denis-Courmont
Qt: do not hard-code argv table size
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a6f0eddb4916d0147a112332cb4e658ada5a37c6
---
modules/gui/qt4/qt4.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/gui/qt4/qt4.cpp b/modules/gui/qt4/qt4.cpp
index 988dbec..edf06b5 100644
--- a/modules/gui/qt4/qt4.cpp
+++ b/modules/gui/qt4/qt4.cpp
@@ -444,8 +444,8 @@ 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[2] = { dummy, NULL, };
- int argc = 1;
+ char *argv[] = { dummy, NULL, };
+ int argc = sizeof(argv) / sizeof(argv[0]) - 1;
Q_INIT_RESOURCE( vlc );
More information about the vlc-commits
mailing list