Commit fb884c6267b5053c62c828e9e4cf3c9111fb94b2

Patrick Steinhardt 2018-02-28T14:59:09

Merge pull request #4555 from libgit2/ethomson/strncmp_stdcall win32: strncmp -> git__strncmp for win32 STDCALL

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/ignore.c b/src/ignore.c
index ddbcaf3..dddd7e8 100644
--- a/src/ignore.c
+++ b/src/ignore.c
@@ -59,7 +59,7 @@ static int does_negate_pattern(git_attr_fnmatch *rule, git_attr_fnmatch *neg)
 	if (neg->flags & GIT_ATTR_FNMATCH_ICASE)
 		cmp = git__strncasecmp;
 	else
-		cmp = strncmp;
+		cmp = git__strncmp;
 
 	/* If lengths match we need to have an exact match */
 	if (rule->length == neg->length) {