From 86bdf608876ad2766ef58b597bdabd800ce8f053 Mon Sep 17 00:00:00 2001 From: Ray Date: Thu, 6 Feb 2020 17:52:33 +0100 Subject: [PATCH] Corrected issue with TextToUpper() and TextToLower() This issue was breaking multiple things... --- src/text.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/text.c b/src/text.c index d4f4e3e84..4d07d082a 100644 --- a/src/text.c +++ b/src/text.c @@ -1371,8 +1371,8 @@ const char *TextToUpper(const char *text) { if (text[i] != '\0') { - //buffer[i] = (char)toupper(text[i]); - if ((text[i] >= 'a') && (text[i] <= 'z')) buffer[i] = text[i] - 32; + buffer[i] = (char)toupper(text[i]); + //if ((text[i] >= 'a') && (text[i] <= 'z')) buffer[i] = text[i] - 32; } else { buffer[i] = '\0'; break; } } @@ -1389,8 +1389,8 @@ const char *TextToLower(const char *text) { if (text[i] != '\0') { - //buffer[i] = (char)tolower(text[i]); - if ((text[i] >= 'A') && (text[i] <= 'Z')) buffer[i] = text[i] + 32; + buffer[i] = (char)tolower(text[i]); + //if ((text[i] >= 'A') && (text[i] <= 'Z')) buffer[i] = text[i] + 32; } else { buffer[i] = '\0'; break; } }