forked from github/server
gcc did not like xstrcat
This commit is contained in:
parent
0059254797
commit
eea094a010
1 changed files with 7 additions and 7 deletions
|
@ -56,7 +56,7 @@ static const xmlChar *
|
||||||
make_names(const char * monster, int * num_postfix, int pprefix, int * num_name, int * num_prefix, int ppostfix)
|
make_names(const char * monster, int * num_postfix, int pprefix, int * num_name, int * num_prefix, int ppostfix)
|
||||||
{
|
{
|
||||||
int uv, uu, un;
|
int uv, uu, un;
|
||||||
static xmlChar name[NAMESIZE + 1];
|
static char name[NAMESIZE + 1];
|
||||||
char zText[32];
|
char zText[32];
|
||||||
const xmlChar * str;
|
const xmlChar * str;
|
||||||
|
|
||||||
|
@ -102,24 +102,24 @@ make_names(const char * monster, int * num_postfix, int pprefix, int * num_name,
|
||||||
sprintf(zText, "%s_prefix_%d", monster, uv);
|
sprintf(zText, "%s_prefix_%d", monster, uv);
|
||||||
str = locale_getstring(default_locale, zText);
|
str = locale_getstring(default_locale, zText);
|
||||||
if (str) {
|
if (str) {
|
||||||
xstrcat(name, str);
|
strcat(name, (const char *)str);
|
||||||
xstrcat(name, " ");
|
strcat(name, " ");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
sprintf(zText, "%s_name_%d", monster, uu);
|
sprintf(zText, "%s_name_%d", monster, uu);
|
||||||
str = locale_getstring(default_locale, zText);
|
str = locale_getstring(default_locale, zText);
|
||||||
if (str) xstrcat(name, str);
|
if (str) strcat(name, (const char *)str);
|
||||||
|
|
||||||
if (un < *num_postfix) {
|
if (un < *num_postfix) {
|
||||||
sprintf(zText, "%s_postfix_%d", monster, un);
|
sprintf(zText, "%s_postfix_%d", monster, un);
|
||||||
str = locale_getstring(default_locale, zText);
|
str = locale_getstring(default_locale, zText);
|
||||||
if (str) {
|
if (str) {
|
||||||
xstrcat(name, " ");
|
strcat(name, " ");
|
||||||
xstrcat(name, str);
|
strcat(name, (const char *)str);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return name;
|
return (const xmlChar *)name;
|
||||||
}
|
}
|
||||||
|
|
||||||
const xmlChar *
|
const xmlChar *
|
||||||
|
|
Loading…
Reference in a new issue