Ticket #18413

施錠しようとすると落ちる

Open Date: 2009-08-26 20:59 Last Update: 2009-08-29 13:58

Reporter:
Owner:
Type:
Status:
Closed
Component:
(None)
MileStone:
(None)
Priority:
5 - Medium
Severity:
8
Resolution:
Fixed
File:
None

Details

万能鍵等で宝箱を施錠しようとするとゴミが表示されたりsegmentation faultで落ちたりします。
svn最新リビジョン(rev.33)での症状です。環境はUbuntu 9.04 + gcc 4.3.3です。

原因の個所が判明したので、差分も載せておきます。

diff -aurbN -x.svn junnethack/src/lock.c junh/src/lock.c
--- junnethack/src/lock.c       2009-08-23 07:18:59.000000000 +0900
+++ junh/src/lock.c     2009-08-26 20:34:41.000000000 +0900
@@ -436,7 +436,7 @@
 #else
                    if (otmp->obroken) verb = "修復する";
                    else if (otmp->otyp == IRON_SAFE) verb = "破る", it = 1;
-                   else if (!otmp->olocked) "鍵をかける", it = 1;
+                   else if (!otmp->olocked) verb = "鍵をかける", it = 1;
                    else if (picktyp != LOCK_PICK) verb = "鍵をはずす", it = 1;
                    else verb = "こじ開ける";
 #endif

Ticket History (3/4 Histories)

2009-08-26 20:59 Updated by: dplusplus
  • New Ticket "施錠しようとすると落ちる" created
2009-08-26 21:04 Updated by: so-miya
  • Resolution Update from None to Accepted
  • Owner Update from (None) to so-miya
Comment

ご報告ありがとうございます。 問題の箇所を確認しました。

2009-08-26 21:56 Updated by: so-miya
  • Resolution Update from Accepted to Fixed
Comment

SVN r34 で対処しました。

2009-08-29 13:58 Updated by: so-miya
  • Status Update from Open to Closed
  • Ticket Close date is changed to 2009-08-29 13:58
Comment

対処したJUnNetHack-3.5.1-J0.1.1をリリースしたので閉じます。

Attachment File List

No attachments

Edit

You are not logged in. I you are not logged in, your comment will be treated as an anonymous post. » Login