Browse Source

REVIEWED: `TextToPascal()` issue when first char is uppercase

pull/3307/head
Ray 1 year ago
parent
commit
e75f85ce58
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      src/rtext.c

+ 1
- 0
src/rtext.c View File

@ -1676,6 +1676,7 @@ const char *TextToPascal(const char *text)
{
// Upper case first character
if ((text[0] >= 'a') && (text[0] <= 'z')) buffer[0] = text[0] - 32;
else buffer[0] = text[0];
// Check for next separator to upper case another character
for (int i = 1, j = 1; (i < MAX_TEXT_BUFFER_LENGTH - 1) && (text[j] != '\0'); i++, j++)

Loading…
Cancel
Save