Commit ebf89221 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Another overflow

parent 64b79790
...@@ -722,7 +722,7 @@ mvar_t *E_(mvar_VlmSetNew)( char *name, vlm_t *vlm ) ...@@ -722,7 +722,7 @@ mvar_t *E_(mvar_VlmSetNew)( char *name, vlm_t *vlm )
/* Over name */ /* Over name */
vlm_message_t *el = ch->child[j]; vlm_message_t *el = ch->child[j];
vlm_message_t *inf, *desc; vlm_message_t *inf, *desc;
char psz[500]; char psz[6 + strlen(el->psz_name)];
sprintf( psz, "show %s", el->psz_name ); sprintf( psz, "show %s", el->psz_name );
if( vlm_ExecuteCommand( vlm, psz, &inf ) ) if( vlm_ExecuteCommand( vlm, psz, &inf ) )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment