mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-05 22:55:47 +00:00
Fix git__strntolower
Obviously, the whole string should be lower-cased and not just the last char. Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
This commit is contained in:
parent
a68cf94b37
commit
0130d8184e
@ -165,7 +165,7 @@ void git__strntolower(char *str, int len)
|
||||
int i;
|
||||
|
||||
for (i = 0; i < len; ++i) {
|
||||
str[len] = tolower(str[len]);
|
||||
str[i] = tolower(str[i]);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user