render-test: Fix invocation of tab_footnote().
authorFriedrich Beckmann <friedrich.beckmann@gmx.de>
Sun, 28 Sep 2014 23:46:07 +0000 (16:46 -0700)
committerBen Pfaff <blp@cs.stanford.edu>
Sun, 28 Sep 2014 23:47:25 +0000 (16:47 -0700)
Fixes this GCC warning:

    tests/output/render-test.c: In function ‘read_table’:
    tests/output/render-test.c:491:19: error: format not a string literal and
    no format arguments [-Werror=format-security]

tests/output/render-test.c

index 0d6f9684f30a6f87457f06105b7519a4b4bd5155..8ce0697910537194d450a09809ef73a2fd3079e9 100644 (file)
@@ -488,7 +488,7 @@ read_table (FILE *stream, struct table **tables, size_t n_tables)
                   tab_joint_text (tab, c, r, c + cs - 1, r + rs - 1, opt,
                                   content);
                 else
-                  tab_footnote (tab, c, r, content);
+                  tab_footnote (tab, c, r, "%s", content);
             }
         }