diff options
Diffstat (limited to 'config-set.c')
-rw-r--r-- | config-set.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/config-set.c b/config-set.c index 5f654f7af..d938f9676 100644 --- a/config-set.c +++ b/config-set.c @@ -38,6 +38,7 @@ static int get_value(const char* key_, const char* regex_) key = malloc(strlen(key_)+1); for (i = 0; key_[i]; i++) key[i] = tolower(key_[i]); + key[i] = 0; if (regex_) { if (regex_[0] == '!') { |