浏览代码

Correctly clear out output UTF-16 buffer

Each character is more than one byte, so adjust the clearing of the
buffer to reflect that.
tags/v1.11.90
Pierre Ossman 3 年前
父节点
当前提交
9886e94d9b
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      common/rfb/util.cxx

+ 1
- 1
common/rfb/util.cxx 查看文件

@@ -530,7 +530,7 @@ namespace rfb {

// Alloc
buffer = new wchar_t[sz];
memset(buffer, 0, sz);
memset(buffer, 0, sz * sizeof(wchar_t));

// And convert
out = buffer;

正在加载...
取消
保存