projects
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
git-config-set: Properly terminate strings with '\0'
[git.git]
/
config.c
diff --git
a/config.c
b/config.c
index
5d237c8
..
e78520b
100644
(file)
--- 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