Corrected issue with toupper() usage
This commit is contained in:
parent
90c129fd61
commit
34fafb733f
1 changed files with 2 additions and 2 deletions
|
@ -1404,7 +1404,7 @@ const char *TextToPascal(const char *text)
|
||||||
{
|
{
|
||||||
static char buffer[MAX_TEXT_BUFFER_LENGTH] = { 0 };
|
static char buffer[MAX_TEXT_BUFFER_LENGTH] = { 0 };
|
||||||
|
|
||||||
buffer[0] = (char)TextToUpper(text[0]);
|
buffer[0] = (char)toupper(text[0]);
|
||||||
|
|
||||||
for (int i = 1, j = 1; i < MAX_TEXT_BUFFER_LENGTH; i++, j++)
|
for (int i = 1, j = 1; i < MAX_TEXT_BUFFER_LENGTH; i++, j++)
|
||||||
{
|
{
|
||||||
|
@ -1414,7 +1414,7 @@ const char *TextToPascal(const char *text)
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
j++;
|
j++;
|
||||||
buffer[i] = (char)TextToUpper(text[j]);
|
buffer[i] = (char)toupper(text[j]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else { buffer[i] = '\0'; break; }
|
else { buffer[i] = '\0'; break; }
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue