]> granicus.if.org Git - yasm/commitdiff
Fix #189: Avoid compiler warning in genperf.
authorPeter Johnson <peter@tortall.net>
Tue, 3 Nov 2009 05:15:37 +0000 (05:15 -0000)
committerPeter Johnson <peter@tortall.net>
Tue, 3 Nov 2009 05:15:37 +0000 (05:15 -0000)
svn path=/trunk/yasm/; revision=2235

tools/genperf/genperf.c

index 1fcf2da170952d2f7ced26d534d4feead743d9a7..c05a4cc083e32d500f6275cce4a75cd5af00922a 100644 (file)
@@ -234,7 +234,7 @@ perfect_gen(FILE *out, const char *lookup_function_name,
     /* The hash function body */
     fprintf(out, "  const struct %s *ret;\n", struct_name);
     for (i=0; i<final.used; ++i)
-        fprintf(out, final.line[i]);
+        fprintf(out, "%s", final.line[i]);
     fprintf(out, "  if (rsl >= %lu) return NULL;\n", nkeys);
     fprintf(out, "  ret = &pd[rsl];\n");
     fprintf(out, "  if (strcmp(key, ret->name) != 0) return NULL;\n");