]> Kevux Git Server - fll/commit
Bugfix: The print functions are not printing the last letter in certain cases.
authorKevin Day <thekevinday@gmail.com>
Sat, 4 Jun 2022 01:17:40 +0000 (20:17 -0500)
committerKevin Day <thekevinday@gmail.com>
Sat, 4 Jun 2022 01:17:40 +0000 (20:17 -0500)
commit93c9cf008afa4011522c3af5a949ec695bb3eb5b
tree5d9d452474ebb8712cad96e313fe938aa799b620
parent559ece9afe3f1b6fdb465012ff68a3d059466802
Bugfix: The print functions are not printing the last letter in certain cases.

The overflow check is testing against >= stop or length.
The equal sign is the problem here.
If the character ends on the stop point or the length, then a whole character would have been printed.
This is not an error and should not result in a return.

Changing >= to > fixes the problem.
Because of this, the additional width check is unnecessary.
level_1/fl_print/c/private-print.c