aboutsummaryrefslogtreecommitdiff
path: root/liberty.c
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2017-05-06 10:55:10 +0200
committerPřemysl Janouch <p.janouch@gmail.com>2017-05-06 10:55:10 +0200
commit9866675bb77beb24ee993360b748fb40e49f9512 (patch)
tree32ccaac96d2be2e722ef766712d944ef5ba44deb /liberty.c
parente25a880883c43e8ffd52e56fe723a16af942d2c9 (diff)
downloadliberty-9866675bb77beb24ee993360b748fb40e49f9512.tar.gz
liberty-9866675bb77beb24ee993360b748fb40e49f9512.tar.xz
liberty-9866675bb77beb24ee993360b748fb40e49f9512.zip
Fix broken toupper_ascii()
Update copyright years.
Diffstat (limited to 'liberty.c')
-rw-r--r--liberty.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/liberty.c b/liberty.c
index da95482..9848c1b 100644
--- a/liberty.c
+++ b/liberty.c
@@ -2639,7 +2639,7 @@ tolower_ascii (int c)
static int
toupper_ascii (int c)
{
- return c >= 'A' && c <= 'Z' ? c : c - ('a' - 'A');
+ return c >= 'a' && c <= 'z' ? c - ('a' - 'A') : c;
}
TRIVIAL_STRXFRM (tolower_ascii_strxfrm, tolower_ascii)