From f6bcd12cd633717e9e503bb453c85955e29cd519 Mon Sep 17 00:00:00 2001 From: ultramage Date: Wed, 23 May 2007 21:23:36 +0000 Subject: - Added new flag to skill_castnodex.txt, to allow per-skill tweaking of cast time and delay reducibility by item scripts (cards and such) - Fixed Martyr's Reckoning never triggering for gms with all skills - Added MO_TRIPLEATTACK and RG_SNATCHER to @skillall's skill filter - Made gm_skill_unconditional bypass skill blocking (guild timer, etc) - Reverted the weird delay_dependon_agi thing (r8923, r9055, r9059) - Changed a few memsets to strncpy (reading past buffer is a bad idea) - Sped up some memset operations (multiples of 4 are faster) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@10613 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/char_sql/int_homun.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/char_sql/int_homun.c') diff --git a/src/char_sql/int_homun.c b/src/char_sql/int_homun.c index acee4f823..42f4ef225 100644 --- a/src/char_sql/int_homun.c +++ b/src/char_sql/int_homun.c @@ -147,7 +147,7 @@ int mapif_load_homunculus(int fd){ homun_pt->hom_id = RFIFOL(fd,6) ; //RFIFOL(fd,2); homun_pt->class_ = atoi(sql_row[2]); - memcpy(homun_pt->name, sql_row[3],NAME_LENGTH-1); + strncpy(homun_pt->name, sql_row[3], NAME_LENGTH); homun_pt->char_id = atoi(sql_row[1]); homun_pt->level = atoi(sql_row[4]); homun_pt->exp = atoi(sql_row[5]); -- cgit v1.2.3-60-g2f50