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:
Carlos Martín Nieto 2011-04-27 11:20:38 +02:00
parent a68cf94b37
commit 0130d8184e

View File

@ -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]);
}
}