summaryrefslogtreecommitdiff
path: root/src/map/skill.c
diff options
context:
space:
mode:
authorultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-04-06 21:43:22 +0000
committerultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-04-06 21:43:22 +0000
commit6ac92e521000e26a5d4034d5c881f08313596aaa (patch)
treee6213a76d0aad5843540c9e3889cdd401deec1ec /src/map/skill.c
parentded1f674755335a9cbb5c08e321b4a4c092a0e8d (diff)
downloadhercules-6ac92e521000e26a5d4034d5c881f08313596aaa.tar.gz
hercules-6ac92e521000e26a5d4034d5c881f08313596aaa.tar.bz2
hercules-6ac92e521000e26a5d4034d5c881f08313596aaa.tar.xz
hercules-6ac92e521000e26a5d4034d5c881f08313596aaa.zip
- Fixed the start_point setting smashing t3h stack in some situations
- Fixed some over/under-dimensioned arrays (the map length defines already reserve space for the string terminator) - Fixed an unupdated define making Warp Portal fail with an error - Fixed some skill entries of the Galion mob git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@10168 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/skill.c')
-rw-r--r--src/map/skill.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/map/skill.c b/src/map/skill.c
index b44219db1..0bd3f288e 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -6095,8 +6095,7 @@ int skill_castend_pos2 (struct block_list *src, int x, int y, int skillid, int s
if (skilllv>3 && sd->status.memo_point[2].map)
snprintf(memo[3], MAP_NAME_LENGTH_EXT, "%s.gat", mapindex_id2name(sd->status.memo_point[2].map));
- clif_skill_warppoint(sd,skillid,skilllv,
- memo[0],memo[1],memo[2],memo[3]);
+ clif_skill_warppoint(sd,skillid,skilllv, memo[0],memo[1],memo[2],memo[3]);
}
break;
@@ -6314,7 +6313,7 @@ int skill_castend_map (struct map_session_data *sd, int skill_num, const char *m
if( skill_num != sd->menuskill_id)
return 0;
- if (strlen(map) > MAP_NAME_LENGTH-1)
+ if (strlen(map) > MAP_NAME_LENGTH_EXT-1)
{ //Map_length check, as it is sent by the client and we shouldn't trust it [Skotlex]
if (battle_config.error_log)
ShowError("skill_castend_map: Received map name '%s' too long!\n", map);