diff --git a/src/common/kernel/battle.c b/src/common/kernel/battle.c index b0604bc9c..fea1d80a8 100644 --- a/src/common/kernel/battle.c +++ b/src/common/kernel/battle.c @@ -3054,6 +3054,7 @@ simplename(region * r) } if (isspace(c)) name[i] = '_'; else name[i] = *cp; + if (c==0) break; } name[i]=0; return name;