bvenneker / Chat64

C64 Chat Cartridge, 2023
GNU General Public License v3.0
13 stars 2 forks source link

fix buffer overflow and string duplication #12

Closed heneault closed 2 months ago

heneault commented 2 months ago

textbuffer variable is causing buffer overflow because its size is fixed to 10 bytes which is less than inbuffer variable. Anyway it was unused to I removed it.

ToEncode variable assignation during detection of the recipientName was removed. It is not required and was duplicated in the next for loop.