diff options
author | Brian Paul <[email protected]> | 2015-03-07 13:15:22 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2015-03-11 09:34:24 -0600 |
commit | 5376bc74ccfac0d1a4df6c5652e075d99e3f4fe4 (patch) | |
tree | e4f3b576b4eb965c0dde625dcb382c34927a6727 /src/gallium/state_trackers/glx | |
parent | 279c5965aa501e6b8f8432b1213f917298154d6c (diff) |
st/glx: use strdup() instead of _mesa_strdup()
Reviewed-by: Jose Fonseca <[email protected]>
Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/glx')
-rw-r--r-- | src/gallium/state_trackers/glx/xlib/glx_api.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/state_trackers/glx/xlib/glx_api.c b/src/gallium/state_trackers/glx/xlib/glx_api.c index d1bd7602a6c..f9572b7d3b3 100644 --- a/src/gallium/state_trackers/glx/xlib/glx_api.c +++ b/src/gallium/state_trackers/glx/xlib/glx_api.c @@ -34,6 +34,7 @@ #include "GL/glx.h" #include <stdio.h> +#include <string.h> #include <X11/Xmd.h> #include <GL/glxproto.h> @@ -644,7 +645,7 @@ register_with_display(Display *dpy) ext = dpy->ext_procs; /* new extension is at head of list */ assert(c->extension == ext->codes.extension); (void) c; - ext->name = _mesa_strdup(extName); + ext->name = strdup(extName); ext->close_display = close_display_callback; } } |