egl: cut down static storage size for {Version,ClientAPI}String
authorEmil Velikov <emil.l.velikov@gmail.com>
Thu, 19 Mar 2015 01:36:08 +0000 (01:36 +0000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Sat, 21 Mar 2015 17:22:19 +0000 (17:22 +0000)
Both seems to be excessively long, namely:

ClientAPIString can get up-to 47 based on current code, while the name
of the driver can dictate the length of the VersionString, currently it
is around 11. Let's pad each to 100, rather than the current 1000.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/egl/main/egldisplay.h

index f8782f917c0d566739d9dc52bfb766a480e398c3..d7f5dbacde6789beac8feff6cbcdffafca1da902 100644 (file)
@@ -153,8 +153,8 @@ struct _egl_display
    _EGLExtensions Extensions; /**< Extensions supported */
 
    /* these fields are derived from above */
-   char VersionString[1000];                       /**< EGL_VERSION */
-   char ClientAPIsString[1000];                    /**< EGL_CLIENT_APIS */
+   char VersionString[100];                        /**< EGL_VERSION */
+   char ClientAPIsString[100];                     /**< EGL_CLIENT_APIS */
    char ExtensionsString[_EGL_MAX_EXTENSIONS_LEN]; /**< EGL_EXTENSIONS */
 
    _EGLArray *Screens;