Commit 374ac709 authored by Eric Eide's avatar Eric Eide

In usage(), don't use `usagestr' as the `fprintf' format string.

Instead, print the usage string using "%s".  This is a safety bug found by
-Wformat.
parent 0abebc11
......@@ -928,7 +928,7 @@ char *usagestr =
void
usage()
{
fprintf(stderr, usagestr);
fprintf(stderr, "%s", usagestr);
exit(1);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment