summaryrefslogtreecommitdiff
path: root/progs/xdemos
diff options
context:
space:
mode:
authorVinson Lee <vlee@vmware.com>2010-01-06 15:33:13 -0800
committerVinson Lee <vlee@vmware.com>2010-01-06 15:33:13 -0800
commit96a4e4552dab2dc0e741de40be0184a1e94515ef (patch)
tree20234dbf6f259b7fc76191a1fd1341ab29ae1fc7 /progs/xdemos
parentc1dad22d7159569b978fdfcb87e4a718041b7d07 (diff)
progs/xdemos: Use temporary variables.
This was missed from the previous commit to glxheads.c.
Diffstat (limited to 'progs/xdemos')
-rw-r--r--progs/xdemos/glxheads.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/progs/xdemos/glxheads.c b/progs/xdemos/glxheads.c
index be77ad6342..edae0a3ef7 100644
--- a/progs/xdemos/glxheads.c
+++ b/progs/xdemos/glxheads.c
@@ -170,14 +170,14 @@ AddHead(const char *displayName)
Error(displayName, "GL_VENDOR string length overflow");
return NULL;
}
- strcpy(h->Vendor, (char *) glGetString(GL_VENDOR));
+ strcpy(h->Vendor, tmp);
tmp = (char *) glGetString(GL_RENDERER);
if (strlen(tmp) + 1 > sizeof(h->Renderer)) {
Error(displayName, "GL_RENDERER string length overflow");
return NULL;
}
- strcpy(h->Renderer, (char *) glGetString(GL_RENDERER));
+ strcpy(h->Renderer, tmp);
NumHeads++;
return &Heads[NumHeads-1];