[vlc-commits] lua: fix vlc.msg.dbg with multiple parameters

Rémi Duraffort git at videolan.org
Thu Jul 14 13:27:58 CEST 2011


vlc/vlc-1.1 | branch: master | Rémi Duraffort <ivoire at videolan.org> | Tue Jul 12 15:45:43 2011 +0200| [e4974acd30cd55d87841ab1e9d027d88831f6e79] | committer: Jean-Baptiste Kempf

lua: fix vlc.msg.dbg with multiple parameters
(cherry picked from commit 00d43bb27c4c6e3b4dbcd8aa43b3af58536b3c5b)

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 modules/misc/lua/libs/messages.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/misc/lua/libs/messages.c b/modules/misc/lua/libs/messages.c
index 7f42a86..9c40e53 100644
--- a/modules/misc/lua/libs/messages.c
+++ b/modules/misc/lua/libs/messages.c
@@ -54,7 +54,7 @@ static int vlclua_msg_dbg( lua_State *L )
     vlc_object_t *p_this = vlclua_get_this( L );
     int i;
     for( i = 1; i <= i_top; i++ )
-        msg_Dbg( p_this, "%s", luaL_checkstring( L, 1 ) );
+        msg_Dbg( p_this, "%s", luaL_checkstring( L, i ) );
     return 0;
 }
 



More information about the vlc-commits mailing list