diff --git a/src/config.c b/src/config.c index 3bde15b36..1ac6ed8c8 100644 --- a/src/config.c +++ b/src/config.c @@ -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]); } }