diff options
Diffstat (limited to 'src/map/npc.c')
-rw-r--r-- | src/map/npc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/npc.c b/src/map/npc.c index 4ff5ba2..edbf548 100644 --- a/src/map/npc.c +++ b/src/map/npc.c @@ -74,7 +74,7 @@ int npc_enable_sub (struct block_list *bl, va_list ap) if (nd->flag & 1) // �������������� return 1; - memcpy (name, nd->name, 50); + memcpy (name, nd->name, sizeof(nd->name)); if (sd->areanpc_id == nd->bl.id) return 1; sd->areanpc_id = nd->bl.id; |