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
diff --git a/unix/x0vncserver/PollingManager.cxx b/unix/x0vncserver/PollingManager.cxx
index 06f725b..9921fd0 100644
--- a/unix/x0vncserver/PollingManager.cxx
+++ b/unix/x0vncserver/PollingManager.cxx
@@ -245,7 +245,7 @@
   // 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.