From: habu Date: Mon, 2 Sep 2002 22:59:43 +0000 (+0000) Subject: who_nameを初期化していないためにkillerにstrcpyした時にバッファオーバーする事があったのでwho_nameをヌル文字列で初期化するように修正。 X-Git-Tag: v2.1.2~1836 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=62ef5ee1d977975f78879fb207f7ef053606e5c3;p=hengband%2Fhengband.git who_nameを初期化していないためにkillerにstrcpyした時にバッファオーバーする事があったのでwho_nameをヌル文字列で初期化するように修正。 --- diff --git a/src/spells1.c b/src/spells1.c index 56588eaa2..95396c7f9 100644 --- a/src/spells1.c +++ b/src/spells1.c @@ -8275,6 +8275,9 @@ bool project(int who, int rad, int y, int x, int dam, int typ, int flg, int mons /* Attacker's name (prepared before polymorph)*/ char who_name[80]; + /* Initialize by null string */ + who_name[0] = '\0'; + rakubadam_p = 0; rakubadam_m = 0;