Morten Welinder writes:
> You need to cast those arguments of tolower to (unsigned char). That's
> arguably a bug of the language.
Don't we do so in git-compat-util.h already?
You need to cast those arguments of tolower to (unsigned char). That's
arguably a bug of the language.
Character values less than zero aren't valid for tolower, unless they
happen to equal
EOF in which case the tolower calls don't mean what you want them to mean. Per
the man page:
"If c is
From: Lars Schneider
Check in a case insensitive manner if one string is a prefix of another
string.
This function is used in a subsequent commit.
Signed-off-by: Lars Schneider
---
git-compat-util.h | 1 +
strbuf.c | 9 +
2
3 matches
Mail list logo