From: Dale Weiler Date: Wed, 14 Aug 2013 04:27:11 +0000 (+0000) Subject: Fix X-Git-Tag: v0.3.0~28 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=85ee52128c1a71908d75ea5b41de7201a33f964b;p=xonotic%2Fgmqcc.git Fix --- 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; }