<html><head></head><body>Same as 1<br><br>-1<br><br><div class="gmail_quote">Le 8 décembre 2020 16:19:06 GMT+02:00, "Hugo Beauzée-Luyssen" <hugo@beauzee.fr> a écrit :<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<pre class="k9mail"><hr> src/misc/actions.c | 6 ++++--<br> 1 file changed, 4 insertions(+), 2 deletions(-)<br><br>diff --git a/src/misc/actions.c b/src/misc/actions.c<br>index b10b07936e..58bb64c3bc 100644<br>--- a/src/misc/actions.c<br>+++ b/src/misc/actions.c<br>@@ -601,12 +601,14 @@ size_t<br> vlc_actions_get_keycodes(vlc_object_t *p_obj, const char *psz_key_name,<br> bool b_global, uint_fast32_t **pp_keycodes)<br> {<br>- char varname[12 /* "global-key-" */ + strlen( psz_key_name )];<br>- sprintf( varname, "%skey-%s", b_global ? "global-" : "", psz_key_name );<br>+ char* varname;<br>+ if (asprintf(&varname, "%skey-%s", b_global ? "global-" : "", psz_key_name) < 0)<br>+ return 0;<br> <br> *pp_keycodes = NULL;<br> <br> char *psz_keys = var_InheritString( p_obj, varname );<br>+ free(varname);<br> if( psz_keys == NULL )<br> return 0;<br> </pre></blockquote></div><br>-- <br>Envoyé de mon appareil Android avec Courriel K-9 Mail. Veuillez excuser ma brièveté.</body></html>