diff options
author | Haru <haru@dotalux.com> | 2017-07-27 10:39:40 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-27 10:39:40 +0200 |
commit | b04ce31b952c75d5206fbfec68f2a2712da833c3 (patch) | |
tree | 9031210c2158e437dec26b26f1135934fe692dbf /src/map/npc.c | |
parent | 45d2d465591d89d927aadf398cdb6166afe9cd9a (diff) | |
parent | 08121dbcef6b6a70e39ba6c5391d605d1f3e3944 (diff) | |
download | hercules-b04ce31b952c75d5206fbfec68f2a2712da833c3.tar.gz hercules-b04ce31b952c75d5206fbfec68f2a2712da833c3.tar.bz2 hercules-b04ce31b952c75d5206fbfec68f2a2712da833c3.tar.xz hercules-b04ce31b952c75d5206fbfec68f2a2712da833c3.zip |
Merge pull request #1811 from 4144/refactor
Refactor status_change_start and fix some issues in other code
Diffstat (limited to 'src/map/npc.c')
-rw-r--r-- | src/map/npc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/npc.c b/src/map/npc.c index a358fd2fb..38996a0a3 100644 --- a/src/map/npc.c +++ b/src/map/npc.c @@ -2724,10 +2724,10 @@ struct npc_data* npc_add_warp(char* name, short from_mapid, short from_x, short flag = 1; if (flag == 1) - snprintf(nd->exname, ARRAYLENGTH(nd->exname), "warp_%d_%d_%d", from_mapid, from_x, from_y); + safesnprintf(nd->exname, ARRAYLENGTH(nd->exname), "warp_%d_%d_%d", from_mapid, from_x, from_y); for( i = 0; npc->name2id(nd->exname) != NULL; ++i ) - snprintf(nd->exname, ARRAYLENGTH(nd->exname), "warp%d_%d_%d_%d", i, from_mapid, from_x, from_y); + safesnprintf(nd->exname, ARRAYLENGTH(nd->exname), "warp%d_%d_%d_%d", i, from_mapid, from_x, from_y); safestrncpy(nd->name, nd->exname, ARRAYLENGTH(nd->name)); nd->u.warp.mapindex = to_mapindex; |