dbrace macht unfug

This commit is contained in:
Enno Rehling 2002-11-03 14:03:16 +00:00
parent 5da8f6169e
commit 854e06ba39
1 changed files with 8 additions and 8 deletions

View File

@ -111,10 +111,10 @@ const char *
dbrace(const struct race * rc) dbrace(const struct race * rc)
{ {
static char zText[32]; static char zText[32];
unsigned char * zPtr = (unsigned char*)zText; char * zPtr = zText;
strcpy(zText, LOC(find_locale("en"), rc_name(rc, 0))); strcpy(zText, LOC(find_locale("en"), rc_name(rc, 0)));
while (*zPtr) { while (*zPtr) {
*zPtr = (unsigned char)toupper(*(int*)zPtr); *zPtr = toupper(*zPtr);
++zPtr; ++zPtr;
} }
return zText; return zText;