Browse Source

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 16 years ago
parent
commit
f25307a3be
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      unix/x0vncserver/PollingManager.cxx

+ 1
- 1
unix/x0vncserver/PollingManager.cxx View File

@@ -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…
Cancel
Save