浏览代码

linux-capture: Fix format-overflow warning

tytan652 3 年之前
父节点
当前提交
1007a0cf42
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      plugins/linux-capture/xshm-input.c

+ 1 - 1
plugins/linux-capture/xshm-input.c

@@ -352,7 +352,7 @@ static bool xshm_server_changed(obs_properties_t *props, obs_property_t *p,
 
 	for (int_fast32_t i = 0; i < count; ++i) {
 		char *name;
-		char name_tmp[12];
+		char name_tmp[20];
 		int_fast32_t x, y, w, h;
 		x = y = w = h = 0;