bugfix #551: do not return a stack buffer that isn't static

This commit is contained in:
Enno Rehling 2016-09-02 16:18:45 +02:00
parent b725e9676a
commit 4e323f8120
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ static const char *describe_race(const race * rc, const struct locale *lang)
{
char zText[32];
sprintf(zText, "describe_%s", rc->_name);
return LOC(lang, zText);
return locale_getstring(lang, zText);
}
static void count_particles(const char *monster, int *num_prefix, int *num_name, int *num_postfix)