Skip to content

Commit

Permalink
Fix non-literal format in printf-style calls
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Daniel Lowe authored and Junio C Hamano committed Nov 11, 2008
1 parent 8bb4646 commit 42fc113
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion builtin-check-attr.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down
2 changes: 1 addition & 1 deletion hash-object.c
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ int main(int argc, const char **argv)
}

if (errstr) {
error (errstr);
error("%s", errstr);
usage_with_options(hash_object_usage, hash_object_options);
}

Expand Down

0 comments on commit 42fc113

Please sign in to comment.