ansilove

ANSI and ASCII art to PNG converter in C
Log | Files | Refs | README | LICENSE

commit a3b42f58e6a55916869cf0eebea5c750f7e74977
parent 1554e4b7ad7a5714fa58dc89fc24c63022326cec
Author: Frederic Cambus <fred@statdns.com>
Date:   Fri, 14 Apr 2017 23:43:59 +0200

Add a trailing NUL character to inputFileBuffer

Diffstat:
Msrc/main.c | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/main.c b/src/main.c @@ -299,6 +299,8 @@ int main(int argc, char *argv[]) { fputs ("\nReading error.\n\n", stderr); exit (3); } // whole file is now loaded into inputFileBuffer + inputFileBuffer[inputFileSize] = '\0'; + // adjust the file size if file contains a SAUCE record if(fileHasSAUCE) { sauce *saucerec = sauceReadFile(input_file);