Fix non-literal format in printf-style calls

These were found using gcc 4.3.2-1ubuntu11 with the warning:

    warning: format not a string literal and no format arguments

Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Daniel Lowe
2008-11-10 16:07:52 -05:00
committed by Junio C Hamano
parent 8bb4646dae
commit 42fc1139a0
2 changed files with 2 additions and 2 deletions

View File

@ -97,7 +97,7 @@ int cmd_check_attr(int argc, const char **argv, const char *prefix)
else if (stdin_paths && doubledash < argc)
errstr = "Can't specify files with --stdin";
if (errstr) {
error (errstr);
error("%s", errstr);
usage_with_options(check_attr_usage, check_attr_options);
}