From 85ee52128c1a71908d75ea5b41de7201a33f964b Mon Sep 17 00:00:00 2001 From: Dale Weiler Date: Wed, 14 Aug 2013 04:27:11 +0000 Subject: [PATCH] Fix --- util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util.c b/util.c index ecae505..32edbbd 100644 --- a/util.c +++ b/util.c @@ -234,7 +234,7 @@ static GMQCC_INLINE size_t util_strtransform(const char *in, char *out, size_t o for (; *in && sz < outsz; ++in, ++out, ++sz) { *out = (*in == mod[0]) ? mod[1] - : (util_isalpha(*in) && util_isupper(*in + add)) + : (util_isalpha(*in) && ((add > 0) ? util_isupper(*in) : !util_isupper(*in))) ? *in + add : *in; } -- 2.39.2