When layout is right to left (-R) and input is long enough, with certain fonts (many in the "figletfonts40" JavE collection at http://www.jave.de/figlet/fonts.html and maybe others) the STRCAT call in addchar() writes past the end of the templine buffer.
Noticed on Windows 7, gcc 4.8.2, with both char and wchar_t variants.
Example test case:
figlet -f flowerpower.flf -R -x -S -p -w 80 abcdefghijklmnopqrstuvwxyz
I don't have time to prepare a patch at the moment, but I'll investigate further.
When layout is right to left (-R) and input is long enough, with certain fonts (many in the "figletfonts40" JavE collection at http://www.jave.de/figlet/fonts.html and maybe others) the STRCAT call in addchar() writes past the end of the templine buffer.
Noticed on Windows 7, gcc 4.8.2, with both char and wchar_t variants.
Example test case:
figlet -f flowerpower.flf -R -x -S -p -w 80 abcdefghijklmnopqrstuvwxyz
I don't have time to prepare a patch at the moment, but I'll investigate further.