aboutsummaryrefslogtreecommitdiff
path: root/mesalib/src/mapi/stub.c
diff options
context:
space:
mode:
Diffstat (limited to 'mesalib/src/mapi/stub.c')
-rw-r--r--mesalib/src/mapi/stub.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesalib/src/mapi/stub.c b/mesalib/src/mapi/stub.c
index 05436bab6..45e4f7dc6 100644
--- a/mesalib/src/mapi/stub.c
+++ b/mesalib/src/mapi/stub.c
@@ -102,7 +102,7 @@ stub_add_dynamic(const char *name)
if (!stub->addr)
return NULL;
- stub->name = (const void *) name;
+ stub->name = (const void *) strdup(name);
/* to be fixed later */
stub->slot = -1;