diff --git a/source/Irrlicht/COGLESExtensionHandler.h b/source/Irrlicht/COGLESExtensionHandler.h index 5b36f445..311402fb 100644 --- a/source/Irrlicht/COGLESExtensionHandler.h +++ b/source/Irrlicht/COGLESExtensionHandler.h @@ -28,7 +28,7 @@ static const char* const OGLESFeatureStrings[] = { "GL_AMD_compressed_ATC_texture", "GL_ARB_texture_env_combine", "GL_ARB_texture_env_dot3", - "GL_EXT_multi_draw_arrays" + "GL_EXT_multi_draw_arrays", "GL_EXT_texture_filter_anisotropic", "GL_IMG_read_format", "GL_IMG_texture_compression_pvrtc", @@ -164,16 +164,16 @@ static const char* const OGLESFeatureStrings[] = { core::stringc extensions = glGetString(GL_EXTENSIONS); os::Printer::log(extensions.c_str()); { - c8 *str = new c8[extensions.size()+1]; + c8* str = new c8[extensions.size()+1]; + strncpy(str, extensions.c_str(), extensions.size()+1); c8* p = str; - for (size_t i=0; i