summaryrefslogtreecommitdiff
path: root/tests-clar
diff options
context:
space:
mode:
authornulltoken <emeric.fermas@gmail.com>2012-11-17 04:50:48 -0800
committernulltoken <emeric.fermas@gmail.com>2012-11-17 05:13:13 -0800
commit86b9dbc12f61c24457f2979e9496c85e115a3799 (patch)
tree54d8b65785bbe2d973551eb240fe54ce2f4fb7fb /tests-clar
parente087973ec7c3c504696e2be4fad688aa09715d8d (diff)
downloadlibgit2-86b9dbc12f61c24457f2979e9496c85e115a3799.tar.gz
Fix MSVC compilation warnings
Diffstat (limited to 'tests-clar')
-rw-r--r--tests-clar/object/raw/short.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests-clar/object/raw/short.c b/tests-clar/object/raw/short.c
index 14b1ae219..93c79b6a5 100644
--- a/tests-clar/object/raw/short.c
+++ b/tests-clar/object/raw/short.c
@@ -43,7 +43,7 @@ void test_object_raw_short__oid_shortener_stresstest_git_oid_shorten(void)
for (i = 0; i < MAX_OIDS; ++i) {
char *oid_text;
- sprintf(number_buffer, "%u", (unsigned int)i);
+ p_snprintf(number_buffer, 16, "%u", (unsigned int)i);
git_hash_buf(&oid, number_buffer, strlen(number_buffer));
oid_text = git__malloc(GIT_OID_HEXSZ + 1);