summaryrefslogtreecommitdiff
path: root/src/reflog.c
diff options
context:
space:
mode:
authorVicent Marti <tanoku@gmail.com>2011-08-18 02:13:51 +0200
committerVicent Marti <tanoku@gmail.com>2011-08-18 02:35:28 +0200
commit84dd3820d41046d35cb8b3bf65e67d0eb7e68f6c (patch)
tree9a9f028446162d5effe4f5458f60c9bdb628f81a /src/reflog.c
parentc85e08b1bda30c1a7e0a6e804f81665047fd8005 (diff)
downloadlibgit2-84dd3820d41046d35cb8b3bf65e67d0eb7e68f6c.tar.gz
posix: Properly handle `snprintf` in all platforms
Diffstat (limited to 'src/reflog.c')
-rw-r--r--src/reflog.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/reflog.c b/src/reflog.c
index 7a056a056..d28e5cba1 100644
--- a/src/reflog.c
+++ b/src/reflog.c
@@ -254,7 +254,7 @@ int git_reflog_write(git_reference *ref, const git_oid *oid_old,
if (oid_old)
git_oid_to_string(old, GIT_OID_HEXSZ+1, oid_old);
else
- snprintf(old, GIT_OID_HEXSZ+1, "%0*d", GIT_OID_HEXSZ, 0);
+ p_snprintf(old, GIT_OID_HEXSZ+1, "%0*d", GIT_OID_HEXSZ, 0);
return reflog_write(log_path, old, new, committer, msg);
}