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>
key = malloc(strlen(key_)+1);
for (i = 0; key_[i]; i++)
key[i] = tolower(key_[i]);
key = malloc(strlen(key_)+1);
for (i = 0; key_[i]; i++)
key[i] = tolower(key_[i]);
if (regex_) {
if (regex_[0] == '!') {
if (regex_) {
if (regex_[0] == '!') {
return 1;
} else
store.key[i] = tolower(key[i]);
return 1;
} else
store.key[i] = tolower(key[i]);
/*
* The lock_file serves a purpose in addition to locking: the new
/*
* The lock_file serves a purpose in addition to locking: the new