mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-07-14 15:24:07 +00:00
libobs: Remove variable-length array
This commit is contained in:
parent
27630a8c0e
commit
54bacd4f10
|
@ -462,7 +462,7 @@ static bool code_to_str(int code, struct dstr *str)
|
||||||
void obs_key_to_str(obs_key_t key, struct dstr *str)
|
void obs_key_to_str(obs_key_t key, struct dstr *str)
|
||||||
{
|
{
|
||||||
const UniCharCount max_length = 16;
|
const UniCharCount max_length = 16;
|
||||||
UniChar buffer[max_length];
|
UniChar buffer[16];
|
||||||
|
|
||||||
if (localized_key_to_str(key, str))
|
if (localized_key_to_str(key, str))
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue