buffer size was too small for some special items

This commit is contained in:
Enno Rehling 2012-05-21 15:47:18 -07:00
parent 1e9c10fbe2
commit ad59fe96b0
1 changed files with 2 additions and 2 deletions

View File

@ -1110,7 +1110,7 @@ static int add_itemname_cb(const void * match, const void * key, size_t keylen,
cb_get_kv(match, &itype, sizeof(itype));
for (i = 0; i!=2;++i) {
char buffer[64];
char buffer[128];
const char * name = locale_string(lang, itype->rtype->_name[i]);
if (name && transliterate(buffer, sizeof(buffer), name)) {
@ -1127,7 +1127,7 @@ const item_type *finditemtype(const char *name, const struct locale *lang)
{
int i = locale_index(lang);
critbit_tree * cb = inames+i;
char buffer[64];
char buffer[128];
if (transliterate(buffer, sizeof(buffer), name)) {
const void * match;