https://gitlab.synchro.net/main/sbbs/-/commit/5ccd9e8ccc6fd0158c7228b6
Modified Files:
src/sbbs3/userdat.c
Log Message:
Fix bug in subtract_cdt() handling free credit roll-under to regular credits
Bug introduced in commit 8deac23222b3a3db (copy/paste/typo)
Caught during manual code review.
When a user has any amount of free credits, but the amount being subtracted
was greater than their free credits available, the underflow was supposed to
be deducted from their regular credits. Instead, the underflow was (attempted) to be deducted from their free credits, which were alreay zeroed.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net