Author: bde
Date: Tue Apr 16 15:52:04 2019
New Revision: 346280
URL: https://svnweb.freebsd.org/changeset/base/346280

Log:
  Sigh, r346279 was also a test version with the reduced size doubled (so
  it was actually double the full size in current kernels where the reduction
  is null, so overran the mmapped() buffer).

Modified:
  head/lib/libvgl/main.c

Modified: head/lib/libvgl/main.c
==============================================================================
--- head/lib/libvgl/main.c      Tue Apr 16 15:41:45 2019        (r346279)
+++ head/lib/libvgl/main.c      Tue Apr 16 15:52:04 2019        (r346280)
@@ -275,7 +275,7 @@ VGLInit(int mode)
    * get the same efficiency and bugs for all kernels.
    */
   if (VGLModeInfo.vi_mode >= M_VESA_BASE)
-    VGLBufSize = 2*VGLAdpInfo.va_line_width*VGLModeInfo.vi_height*
+    VGLBufSize = VGLAdpInfo.va_line_width*VGLModeInfo.vi_height*
                  VGLModeInfo.vi_planes;
   VGLBuf = malloc(VGLBufSize);
   if (VGLBuf == NULL) {
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to