From 0130d8184e7a0087a5b95700e9a19d60f35b869f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Mart=C3=ADn=20Nieto?= Date: Wed, 27 Apr 2011 11:20:38 +0200 Subject: [PATCH] Fix git__strntolower MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Obviously, the whole string should be lower-cased and not just the last char. Signed-off-by: Carlos Martín Nieto --- src/config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]); } }