We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8533c80 commit df1733dCopy full SHA for df1733d
tests/checkout/index.c
@@ -185,9 +185,11 @@ void test_checkout_index__honor_coresymlinks_default(void)
185
check_file_contents("./symlink/link_to_new.txt", "new.txt");
186
} else {
187
char link_data[1024];
188
- size_t link_size = 1024;
+ int link_size = 1024;
189
190
link_size = p_readlink("./symlink/link_to_new.txt", link_data, link_size);
191
+ cl_assert(link_size >= 0);
192
+
193
link_data[link_size] = '\0';
194
cl_assert_equal_i(link_size, strlen("new.txt"));
195
cl_assert_equal_s(link_data, "new.txt");
0 commit comments