devshane / zork

The DUNGEON (Zork I) source
582 stars 126 forks source link

Fix out-of-bounds array access in preposition vocabulary #22

Open fuulish opened 1 year ago

fuulish commented 1 year ago

Hi, @devshane, I opened this pull request independently of PR #16, because I was transferring it from a separate, but similar implementation (https://github.com/richelbilderbeek/Zork/pull/2). It'd be nice if either PR could be merged, because they fix the undefined behavior incurred by the array-out-of-bounds access (prplnt <-> pvoc).