Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Schindelin <Johannes.Schindelin@gmx.de>2005-11-21 13:18:20 +0300
committerJunio C Hamano <junkio@cox.net>2005-11-22 01:04:22 +0300
commit3dd94e3b2e2f5b00512273f96ab5628c742c112c (patch)
tree9f25338f0dc57dbb427e7229b539dc6a5c34884c /config.c
parente814bc4d159f62941fafe135c3008b3ff103444d (diff)
git-config-set: Properly terminate strings with '\0'
When a lowercase version of the key was generated, it was not terminated. Strangely enough, it worked on Linux and macosx anyway. Just cygwin barfed. Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'config.c')
-rw-r--r--config.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/config.c b/config.c
index 5d237c862d..e78520ba07 100644
--- a/config.c
+++ b/config.c
@@ -432,6 +432,7 @@ int git_config_set_multivar(const char* key, const char* value,
return 1;
} else
store.key[i] = tolower(key[i]);
+ store.key[i] = 0;
/*
* The lock_file serves a purpose in addition to locking: the new