Issue information

Issue ID
#3002
Status
Confirmed
Severity
None
Started
Hercules Elf Bot
Apr 22, 2009 16:23
Last Post
Hercules Elf Bot
Apr 22, 2009 16:23
Confirmation
N/A

Hercules Elf Bot - Apr 22, 2009 16:23

Originally posted by [b]Andhy[/b]
http://www.eathena.ws/board/index.php?autocom=bugtracker&showbug=3002

my core

QUOTE
#0 skill_delunitgroup (src=0xe1d3cc0, group=0x0) at skill.c:9854
9854 if (skill_get_unit_flag(group->skill_id)&(UF_DANCE|UF_SONG|UF_ENSEMBLE))
(gdb) bt full
#0 skill_delunitgroup (src=0xe1d3cc0, group=0x0) at skill.c:9854
ud = (struct unit_data *) 0xe1d3cd8
i = <value optimized out>
j = <value optimized out>
__FUNCTION__ = "skill_delunitgroup"
#1 0x08094238 in status_change_end (bl=0xe1d3cc0, type=SC_WARM, tid=575)
at status.c:6638
group = (struct skill_unit_group *) 0xe1d3cd8
sd = (struct map_session_data *) 0xe1d3cc0
sc = (struct status_change *) 0xe1d3f58
sce = (struct status_change_entry *) 0xd25ab50
status = (struct status_data *) 0xe1d3f08
vd = (struct view_data *) 0xe1d3ea4
opt_flag = <value optimized out>
calc_flag = <value optimized out>
#2 0x08139352 in do_timer (tick=2473644348) at timer.c:330
tid = 575
diff = -134
__FUNCTION__ = "do_timer"
#3 0x081369b4 in main (argc=7, argv=0xbf992704) at core.c:253
next = <value optimized out>


=p

Help pls?

my strlib.c

QUOTE
char* safestrncpy(char* dst, const char* src, size_t n)
{
if( n > 0 )
{
char* d = dst;
const char* s = src;
d[--n] = '\';/* nul-terminate string */
for( ; n > 0; --n )
{
if( (*d++ = *s++) == '\' )
{/* nul-pad remaining bytes */
while( --n > 0 )
*d++ = '\';
break;
}
}
}
return dst;
}


C Yah

This post has been edited by Andhy: Apr 22 2009, 11:14 AM