summaryrefslogtreecommitdiffstats
path: root/src/glx
diff options
context:
space:
mode:
Diffstat (limited to 'src/glx')
-rw-r--r--src/glx/tests/fake_glx_screen.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glx/tests/fake_glx_screen.h b/src/glx/tests/fake_glx_screen.h
index 21515225971..6aa6cb68fe9 100644
--- a/src/glx/tests/fake_glx_screen.h
+++ b/src/glx/tests/fake_glx_screen.h
@@ -40,7 +40,7 @@ public:
this->display = glx_dpy;
this->dpy = (glx_dpy != NULL) ? glx_dpy->dpy : NULL;
- this->serverGLXexts = new char[strlen(ext)];
+ this->serverGLXexts = new char[strlen(ext) + 1];
strcpy((char *) this->serverGLXexts, ext);
}