[Bug 209310] games/bsdgames: incorrect creation of potion names for rogue

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Fri May 6 00:33:57 UTC 2016


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=209310

            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 at FreeBSD.org
          Reporter: sjrbulk at verizon.net
          Assignee: adamw at FreeBSD.org
             Flags: maintainer-feedback?(adamw at 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 = 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);
        }
 }

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


More information about the freebsd-ports-bugs mailing list