Fixed strcat() writing out of bounds in cedit.c since strdup() only malloc() strlen(str)+1 bytes. (thanks Buggo) and moved attack_hit_text back.

This commit is contained in:
Rumble 2008-02-15 16:02:05 +00:00
parent af18bd91b6
commit 70f648c85b
3 changed files with 6 additions and 8 deletions

View file

@ -1455,7 +1455,6 @@ void do_start(struct char_data *ch)
}
advance_level(ch);
mudlog(BRF, MAX(LVL_IMMORT, GET_INVIS_LEV(ch)), TRUE, "%s advanced to level %d", GET_NAME(ch), GET_LEVEL(ch));
GET_HIT(ch) = GET_MAX_HIT(ch);
GET_MANA(ch) = GET_MAX_MANA(ch);