Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
git2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
git2
Commits
0db4cd04
Commit
0db4cd04
authored
Jan 03, 2013
by
Philip Kelley
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix git__strncasecmp
parent
922dd978
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
7 deletions
+5
-7
src/util.c
+5
-7
No files found.
src/util.c
View file @
0db4cd04
...
...
@@ -199,17 +199,15 @@ int git__strncmp(const char *a, const char *b, size_t sz)
int
git__strncasecmp
(
const
char
*
a
,
const
char
*
b
,
size_t
sz
)
{
int
al
=
0
,
bl
=
0
;
int
al
,
bl
;
while
(
sz
&&
*
a
&&
*
b
)
{
do
{
al
=
(
unsigned
char
)
tolower
(
*
a
);
bl
=
(
unsigned
char
)
tolower
(
*
b
);
if
(
al
!=
bl
)
break
;
--
sz
,
++
a
,
++
b
;
}
++
a
,
++
b
;
}
while
(
--
sz
&&
al
&&
al
==
bl
);
return
!
sz
?
0
:
al
-
bl
;
return
al
-
bl
;
}
void
git__strntolower
(
char
*
str
,
size_t
len
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment