summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorFabian Greffrath2014-10-28 06:27:33 +0100
committerFabian Greffrath2014-10-28 06:36:20 +0100
commit5e064562c09ceb5b93a4ddafe734cdb6c7b081c6 (patch)
tree227879415232558cccfb7363d8d8bfb9c0940473 /data
parent6357ef2d6e960cd3cbed76405711e058df679dbf (diff)
downloadchocolate-doom-5e064562c09ceb5b93a4ddafe734cdb6c7b081c6.tar.gz
chocolate-doom-5e064562c09ceb5b93a4ddafe734cdb6c7b081c6.tar.bz2
chocolate-doom-5e064562c09ceb5b93a4ddafe734cdb6c7b081c6.zip
setup: dynamically set size of iwad_labels array
With the addition of the Freedoom IWADs, the number of IWADs supported by chocolate-doom has been raised to 10. However, the iwad_labels[] array only holds place for up to 8 pointers. Incidently, I have all 10 IWADs installed and trying to warp into a game from chocolate-doom-setup leads to an out-of-bounds access of this array and so the application crashes with a segmentation fault. Instead of increasing the array size to 10, which will bite us next time, I decided to set its size dynamically as soon as the number of IWADs of known.
Diffstat (limited to 'data')
0 files changed, 0 insertions, 0 deletions