Mesa (master): egl: Fix an assertion in _eglUpdateAPIsString.

Chia-I Wu olv at kemper.freedesktop.org
Fri Jan 14 06:13:00 UTC 2011


Module: Mesa
Branch: master
Commit: 36a59b29ef07b78378dcb3934131d262d42612cb
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=36a59b29ef07b78378dcb3934131d262d42612cb

Author: Chia-I Wu <olv at lunarg.com>
Date:   Fri Jan 14 14:11:35 2011 +0800

egl: Fix an assertion in _eglUpdateAPIsString.

dpy->ClientAPIs was renamed in a4a38dcf61f141297a083ccac217200947d57b0d.

---

 src/egl/main/eglmisc.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/egl/main/eglmisc.c b/src/egl/main/eglmisc.c
index 5a607dc..a595e3f 100644
--- a/src/egl/main/eglmisc.c
+++ b/src/egl/main/eglmisc.c
@@ -133,7 +133,7 @@ _eglUpdateAPIsString(_EGLDisplay *dpy)
    if (dpy->ClientAPIs & EGL_OPENVG_BIT)
       strcat(apis, "OpenVG ");
 
-   assert(strlen(apis) < sizeof(dpy->ClientAPIs));
+   assert(strlen(apis) < sizeof(dpy->ClientAPIsString));
 }
 
 




More information about the mesa-commit mailing list