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>
Daniel Lowe committed
Nov 10, 2008 at 16:07 UTC
42fc1139a07b4292d3e5251c591609126664941a
2 files changed
+2
-2
builtin-check-attr.c
+1
-1
@@ -97,7 +97,7 @@ int cmd_check_attr(int argc, const char **argv, const char *prefix)
97
else if (stdin_paths && doubledash < argc)
98
errstr = "Can't specify files with --stdin";
99
if (errstr) {
100
- error (errstr);
100
+ error("%s", errstr);
101
usage_with_options(check_attr_usage, check_attr_options);
102
}
103
hash-object.c
+1
-1
@@ -110,7 +110,7 @@ int main(int argc, const char **argv)
110
}
111
112
if (errstr) {
113
- error (errstr);
113
+ error("%s", errstr);
114
usage_with_options(hash_object_usage, hash_object_options);
115
}
116