Browse Source

libobs: Remove variable-length array

tytan652 2 years ago
parent
commit
54bacd4f10
1 changed files with 1 additions and 1 deletions
  1. 1 1
      libobs/obs-cocoa.m

+ 1 - 1
libobs/obs-cocoa.m

@@ -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)
 {
     const UniCharCount max_length = 16;
-    UniChar buffer[max_length];
+    UniChar buffer[16];
 
     if (localized_key_to_str(key, str))
         return;