summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
Diffstat (limited to 'src/map')
-rw-r--r--src/map/npc.h4
-rw-r--r--src/map/script.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/map/npc.h b/src/map/npc.h
index dcb112966..9aae58d3c 100644
--- a/src/map/npc.h
+++ b/src/map/npc.h
@@ -31,8 +31,8 @@ struct npc_data {
struct npc_data *master_nd;
short class_;
short speed;
- char name[NAME_LENGTH+1];// display name
- char exname[NAME_LENGTH+1];// unique npc name
+ char name[NAME_LENGTH];// display name
+ char exname[NAME_LENGTH];// unique npc name
int chat_id;
unsigned int next_walktime;
diff --git a/src/map/script.c b/src/map/script.c
index 745a6888b..0d781906c 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -13940,7 +13940,7 @@ BUILDIN_FUNC(instance_npcname)
if( instance_id && (nd = npc_name2id(str)) != NULL )
{
- static char npcname[NAME_LENGTH+1];
+ static char npcname[NAME_LENGTH];
snprintf(npcname, sizeof(npcname), "dup_%d_%d", instance_id, nd->bl.id);
script_pushconststr(st,npcname);
}