libansilove

Library for converting ANSI, ASCII, and other formats to PNG
Log | Files | Refs | README | LICENSE

commit bd98f066fa392005d8d9ff6f835cf3610101f054
parent 7b6717d8b9b161a5b80c441f54fe7f5e25b6e931
Author: Frederic Cambus <fred@statdns.com>
Date:   Fri, 16 Nov 2018 11:18:08 +0100

No need for buffer pointers to be const, they're passed to functions taking non consts. From Joris Vink, thanks!

Diffstat:
Minclude/ansilove.h | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/ansilove.h b/include/ansilove.h @@ -66,12 +66,12 @@ #define ANSILOVE_MODE_WORKBENCH 3 struct ansilove_png { - const uint8_t *buffer; + uint8_t *buffer; int length; /* Match the parameter type of gdImagePngPtr() */ }; struct ansilove_ctx { - const uint8_t *buffer; + uint8_t *buffer; size_t length; struct ansilove_png png; uint8_t error;