BUG 2447: PArtei fehlt im Kampfreport.

replace strcpy with strcat
This commit is contained in:
Enno Rehling 2018-06-18 20:33:28 +02:00
parent ecdf03138f
commit 2b0b7cd0f8

View file

@ -2179,10 +2179,10 @@ void report_battle_start(battle * b)
for (df = s->fighters; df; df = df->next) {
if (is_attacker(df)) {
if (first) {
sbs_strcpy(&sbs, ", ");
sbs_strcat(&sbs, ", ");
}
if (lastf) {
sbs_strcpy(&sbs, lastf);
sbs_strcat(&sbs, lastf);
first = true;
}
if (seematrix(f, s))
@ -2193,12 +2193,10 @@ void report_battle_start(battle * b)
}
}
}
if (first) {
if (first && lastf) {
sbs_strcat(&sbs, " ");
sbs_strcat(&sbs, LOC(f->locale, "and"));
sbs_strcat(&sbs, " ");
}
if (lastf) {
sbs_strcat(&sbs, lastf);
}