aboutsummaryrefslogtreecommitdiffstats
path: root/src/glx/glx_query.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/glx/glx_query.c')
-rw-r--r--src/glx/glx_query.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glx/glx_query.c b/src/glx/glx_query.c
index bbc2b79d83d..8a7ca53f5d2 100644
--- a/src/glx/glx_query.c
+++ b/src/glx/glx_query.c
@@ -146,7 +146,7 @@ __glXGetStringFromServer(Display * dpy, int opcode, CARD32 glxCode,
length = reply.length * 4;
numbytes = reply.size;
- buf = (char *) malloc(numbytes);
+ buf = malloc(numbytes);
if (buf != NULL) {
_XRead(dpy, buf, numbytes);
length -= numbytes;