From a112529f53296ee4fc7a2e5499bafa7187c74780 Mon Sep 17 00:00:00 2001 From: Jonas Kulla Date: Tue, 23 Dec 2014 19:34:12 +0100 Subject: [PATCH] Use compile time strlen --- src/gl-fun.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gl-fun.cpp b/src/gl-fun.cpp index 15a4802..cb520bd 100644 --- a/src/gl-fun.cpp +++ b/src/gl-fun.cpp @@ -82,8 +82,8 @@ void initGLFunctions() /* Determine GL version */ const char *ver = (const char*) gl.GetString(GL_VERSION); - const char *glesPrefix = "OpenGL ES "; - size_t glesPrefixN = strlen(glesPrefix); + const char glesPrefix[] = "OpenGL ES "; + const size_t glesPrefixN = sizeof(glesPrefix)-1; bool gles = false;