libansilove

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

commit 0def3c497ceffb80fb476806e2f89334f53701c8
parent 8b52961cad9316f37154f4b52313a462a1feef3a
Author: Frederic Cambus <fred@statdns.com>
Date:   Mon,  2 Jul 2018 18:17:46 +0200

We do not need the tundra_header array, we can use strndup on the buffer directly

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

diff --git a/src/loaders/tundra.c b/src/loaders/tundra.c @@ -16,7 +16,6 @@ int ansilove_tundra(struct input *inputFile, struct output *outputFile) // some type declarations struct fontStruct fontData; char tundra_version; - char tundra_header[8]; // font selection alSelectFont(&fontData, outputFile->font); @@ -26,7 +25,6 @@ int ansilove_tundra(struct input *inputFile, struct output *outputFile) // extract tundra header tundra_version = inputFile->buffer[0]; - memcpy(&tundra_header, inputFile->buffer+1, 8); // need to add check for "TUNDRA24" string in the header if (tundra_version != 24) {