summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--strings.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/strings.c b/strings.c
index 15390a28c..5f60b6b4b 100644
--- a/strings.c
+++ b/strings.c
@@ -921,7 +921,7 @@ static char *GetSpecialTownNameString(char *buff, int ind, uint32 seed, const ch
{
char name[512];
- _town_name_generators[ind](name, seed, last);
+ _town_name_generators[ind](name, seed, lastof(name));
return strecpy(buff, name, last);
}