]> git.sesse.net Git - vlc/commitdiff
Another overflow
authorRémi Denis-Courmont <rem@videolan.org>
Sat, 29 Apr 2006 15:46:36 +0000 (15:46 +0000)
committerRémi Denis-Courmont <rem@videolan.org>
Sat, 29 Apr 2006 15:46:36 +0000 (15:46 +0000)
modules/control/http/mvar.c

index aff3b6316291833b3206b3c00762e320f8766b07..00f8a35a71ad5420faca9f92f2a494303b1c4307 100644 (file)
@@ -722,7 +722,7 @@ mvar_t *E_(mvar_VlmSetNew)( char *name, vlm_t *vlm )
             /* Over name */
             vlm_message_t *el = ch->child[j];
             vlm_message_t *inf, *desc;
-            char          psz[500];
+            char          psz[6 + strlen(el->psz_name)];
 
             sprintf( psz, "show %s", el->psz_name );
             if( vlm_ExecuteCommand( vlm, psz, &inf ) )