wwarthen / RomWBW

System Software for Z80/Z180/Z280 Computers
GNU Affero General Public License v3.0
323 stars 93 forks source link

zxcc: Fix for load bios.bin failure on a RPi4 #363

Closed skullandbones closed 9 months ago

skullandbones commented 9 months ago

This is a resolution for Issue #362

Fix load_bios() when used on a Raspberry Pi4.

The defect was corrupting the path of the zxcc executable.

The fix is to NUL terminate the path string from the readlink() call.

skullandbones commented 9 months ago

I removed the redundant codeblock as the local len variable could be defined in the existing codeblock of the if statement..

wwarthen commented 9 months ago

Looks great @skullandbones. Thank you.

Merging now...

-Wayne