diff --git a/src/battle.c b/src/battle.c index 8499ae3db..9761f2978 100644 --- a/src/battle.c +++ b/src/battle.c @@ -3760,7 +3760,7 @@ static int battle_report(battle * b) char buffer[32]; if (komma) { - strlcpy(bufp, ", ", size); + bytes = strlcpy(bufp, ", ", size); if (wrptr(&bufp, &size, bytes) != 0) WARN_STATIC_BUFFER(); }