progs/xdemos: Silence compiler warnings in glxinfo.c.
authorVinson Lee <vlee@vmware.com>
Sat, 12 Dec 2009 10:06:51 +0000 (02:06 -0800)
committerVinson Lee <vlee@vmware.com>
Sat, 12 Dec 2009 10:06:51 +0000 (02:06 -0800)
progs/xdemos/glxinfo.c

index 23df82f..30cd568 100644 (file)
@@ -116,7 +116,7 @@ print_extension_list(const char *ext)
       return;
 
    width = indent;
-   printf(indentString);
+   printf("%s", indentString);
    i = j = 0;
    while (1) {
       if (ext[j] == ' ' || ext[j] == 0) {
@@ -126,7 +126,7 @@ print_extension_list(const char *ext)
             /* start a new line */
             printf("\n");
             width = indent;
-            printf(indentString);
+            printf("%s", indentString);
          }
          /* print the extension name between ext[i] and ext[j] */
          while (i < j) {