aboutsummaryrefslogtreecommitdiff
path: root/apply.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2005-06-12 21:04:27 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-06-12 21:04:27 -0700
commit84fb9a4dca7efe1427c917e2f46a045e48180826 (patch)
treef0c9a7b288ab5188ca166fe9e709331b49d150fc /apply.c
parent9718a00b90b35fd077dbe2216915f1afcf0bb361 (diff)
downloadgit-84fb9a4dca7efe1427c917e2f46a045e48180826.tar.gz
git-84fb9a4dca7efe1427c917e2f46a045e48180826.tar.xz
git-apply: fix error handling for nonexistent files
Missing argument for error() function. We should really use the gcc printf format checking capabilities.
Diffstat (limited to 'apply.c')
-rw-r--r--apply.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apply.c b/apply.c
index 01bcb947e..cf40e5d4b 100644
--- a/apply.c
+++ b/apply.c
@@ -989,7 +989,7 @@ static int check_patch(struct patch *patch)
int changed;
if (lstat(old_name, &st) < 0)
- return error("%s: %s\n", strerror(errno));
+ return error("%s: %s", old_name, strerror(errno));
if (check_index) {
int pos = cache_name_pos(old_name, strlen(old_name));
if (pos < 0)