progs/xdemos: Use temporary variables.
authorVinson Lee <vlee@vmware.com>
Wed, 6 Jan 2010 23:33:13 +0000 (15:33 -0800)
committerVinson Lee <vlee@vmware.com>
Wed, 6 Jan 2010 23:33:13 +0000 (15:33 -0800)
This was missed from the previous commit to glxheads.c.

progs/xdemos/glxheads.c

index be77ad6342d302f5885f00e4d717852b61949602..edae0a3ef7325c7995b927caf37365188044e0c9 100644 (file)
@@ -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];