Commit c0e58e430b5befcdbcd937193e420d86fd3658a4

Vicent Marti 2013-06-25T00:12:19

test-rename: This is not a decimal, silly

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
diff --git a/tests-clar/diff/rename.c b/tests-clar/diff/rename.c
index 79f4070..2b1873b 100644
--- a/tests-clar/diff/rename.c
+++ b/tests-clar/diff/rename.c
@@ -968,10 +968,10 @@ static void write_similarity_file_two(const char *filename, size_t b_lines)
 	size_t i;
 
 	for (i = 0; i < b_lines; i++)
-		git_buf_printf(&contents, "%0.2d - bbbbb\r\n", (int)(i+1));
+		git_buf_printf(&contents, "%02d - bbbbb\r\n", (int)(i+1));
 
 	for (i = b_lines; i < 50; i++)
-		git_buf_printf(&contents, "%0.2d - aaaaa%s", (int)(i+1), (i == 49 ? "" : "\r\n"));
+		git_buf_printf(&contents, "%02d - aaaaa%s", (int)(i+1), (i == 49 ? "" : "\r\n"));
 
 	cl_git_pass(
 		git_futils_writebuffer(&contents, filename, O_RDWR|O_CREAT, 0777));