mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-15 17:30:32 +01:00
progs/xdemos: Use temporary variables.
This was missed from the previous commit to glxheads.c.
This commit is contained in:
parent
c1dad22d71
commit
96a4e4552d
1 changed files with 2 additions and 2 deletions
|
|
@ -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];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue