From 2b7059b95f1eaf5fe4e6904ff7222e81b3bdc317 Mon Sep 17 00:00:00 2001 From: Sven Strickroth Date: Sun, 15 Apr 2012 02:29:05 +0200 Subject: [PATCH] GetEnv: correctly return full value Signed-off-by: Sven Strickroth --- src/Git/Git.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Git/Git.cpp b/src/Git/Git.cpp index da99f755e..c7754e66e 100644 --- a/src/Git/Git.cpp +++ b/src/Git/Git.cpp @@ -1536,7 +1536,7 @@ CString CEnvironment::GetEnv(TCHAR *name) CString sname = str.Tokenize(_T("="),start); if(sname.CompareNoCase(name) == 0) { - return &(*this)[i+start+1]; + return &(*this)[i+start]; } i+=str.GetLength(); } -- 2.11.4.GIT