Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 06 May 2016 00:33:57 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 209310] games/bsdgames: incorrect creation of potion names for rogue
Message-ID:  <bug-209310-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D209310

            Bug ID: 209310
           Summary: games/bsdgames: incorrect creation of potion names for
                    rogue
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: adamw@FreeBSD.org
          Reporter: sjrbulk@verizon.net
          Assignee: adamw@FreeBSD.org
             Flags: maintainer-feedback?(adamw@FreeBSD.org)

The routine to mix potion names doesn't do the swap correctly. Patch below:

--- rogue/inventory.c.orig      2016-05-05 20:12:11.566575000 -0400
+++ rogue/inventory.c   2016-05-05 20:15:31.862775000 -0400
@@ -417,6 +417,7 @@
                k =3D get_rand(0, (POTIONS - 1));
                memcpy(t, id_potions[j].title, MAX_ID_TITLE_LEN);
                memcpy(id_potions[j].title, id_potions[k].title,
MAX_ID_TITLE_LEN);
+               memcpy(id_potions[k].title, t, MAX_ID_TITLE_LEN);
        }
 }

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-209310-13>