forked from github/server
include fix for linux
This commit is contained in:
parent
edf8f3f89d
commit
5dd5a402cb
1 changed files with 2 additions and 1 deletions
|
@ -41,6 +41,7 @@
|
||||||
|
|
||||||
/* libc includes */
|
/* libc includes */
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
|
#include <wctype.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
@ -290,7 +291,7 @@ dragon_name(const unit *u)
|
||||||
sprintf(name, "%s, %s", n, str); /* "Name, der Titel" */
|
sprintf(name, "%s, %s", n, str); /* "Name, der Titel" */
|
||||||
} else {
|
} else {
|
||||||
strcpy(name, (const char *)str); /* "Der Titel Name" */
|
strcpy(name, (const char *)str); /* "Der Titel Name" */
|
||||||
name[0] = (char)toupper(name[0]);
|
name[0] = (char)toupper(name[0]); /* TODO: UNICODE - should use towupper() */
|
||||||
strcat(name, " ");
|
strcat(name, " ");
|
||||||
strcat(name, n);
|
strcat(name, n);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue