瀏覽代碼

Bugfix: we should not assume (sizeof(bool) == 1).


git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2346 3789f03b-4d11-0410-bbf8-ca57d06f2519
tags/v0.0.90
Constantin Kaplinsky 17 年之前
父節點
當前提交
f25307a3be
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      unix/x0vncserver/PollingManager.cxx

+ 1
- 1
unix/x0vncserver/PollingManager.cxx 查看文件

@@ -245,7 +245,7 @@ bool PollingManager::poll_New()
// 32x32 tile. If a value is true, then we've detected a change in
// that tile. Initially, we fill in the array with zero values.
bool *mxChanged = new bool[m_widthTiles * m_heightTiles];
memset(mxChanged, 0, m_widthTiles * m_heightTiles);
memset(mxChanged, 0, m_widthTiles * m_heightTiles * sizeof(bool));

// First pass over the framebuffer. Here we scan 1/32 part of the
// framebuffer -- that is, one line in each (32 * m_width) stripe.

Loading…
取消
儲存