include fix for linux

This commit is contained in:
Enno Rehling 2007-09-03 22:13:43 +00:00
parent edf8f3f89d
commit 5dd5a402cb

View file

@ -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);
} }