supremainc / BioStar2_device_SDK

35 stars 25 forks source link

Fix Incorrect Memory Allocation for cardObjs in BS2Card Structure #31

Open MatinGhanbari opened 3 months ago

MatinGhanbari commented 3 months ago

Corrected the memory allocation for cardObjs by multiplying the structure size by numOfCard instead of incorrectly adding them, ensuring sufficient memory is allocated for multiple card objects and preventing potential memory issues.