diff --git a/src/attributes/attributes.c b/src/attributes/attributes.c index 0fe42a92e..c4925b9c0 100644 --- a/src/attributes/attributes.c +++ b/src/attributes/attributes.c @@ -94,7 +94,6 @@ void register_attributes(void) at_register(&at_woodcount); /* neue UNIT-Attribute */ - at_register(&at_fleechance); at_register(&at_siege); at_register(&at_effect); at_register(&at_private); diff --git a/src/laws.c b/src/laws.c index 736510cd2..9b3e9946a 100644 --- a/src/laws.c +++ b/src/laws.c @@ -1610,10 +1610,12 @@ int display_cmd(unit * u, struct order *ord) free(*s); if (s2) { - *s = strdup(s2); - if (strlen(s2) >= DISPLAYSIZE) { - (*s)[DISPLAYSIZE] = 0; + char * str = strdup(s2); + unicode_utf8_trim(str); + if (strlen(str) >= DISPLAYSIZE) { + str[DISPLAYSIZE-1] = 0; } + *s = str; } else { *s = 0;