Commit 0130d818 by Carlos Martín Nieto

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>
parent a68cf94b
......@@ -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]);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment