shonumi / gbe-plus

DMG/GBC/GBA emulator and experimental NDS emulator.
GNU General Public License v2.0
530 stars 80 forks source link

Fix temp_buffer to allocate two indices instead of one. #80

Closed alasher closed 6 years ago

alasher commented 6 years ago

Not familiar with this codebase at all, but this looks like a pretty clear typo to me. temp_buffer is used in other functions in this file with two bytes instead of just one. This also fixes a few warnings (on Clang at least) that indicate that we're accessing an out-of-bounds array index (see use of temp_buffer[1] on the very next line.)

shonumi commented 6 years ago

Sorry for the delay. Nice catch with the typo.