Commit d969d41547080d5e924d49f44ba5de1ade5b343c

Edward Thomson 2015-04-24T12:00:51

Merge pull request #3071 from linquize/git_reflog_drop Fix wrong format string in git_reflog_drop() error message

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/reflog.c b/src/reflog.c
index 22aa7d8..9ce9aee 100644
--- a/src/reflog.c
+++ b/src/reflog.c
@@ -193,7 +193,7 @@ int git_reflog_drop(git_reflog *reflog, size_t idx, int rewrite_previous_entry)
 	entry = (git_reflog_entry *)git_reflog_entry_byindex(reflog, idx);
 
 	if (entry == NULL) {
-		giterr_set(GITERR_REFERENCE, "No reflog entry at index "PRIuZ, idx);
+		giterr_set(GITERR_REFERENCE, "No reflog entry at index %"PRIuZ, idx);
 		return GIT_ENOTFOUND;
 	}