ansilove

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

commit 7e158cbec1346a932a9a206f2fff445b1e5a03af
parent b02d3d3dc810bc65ed1ca60722dcf667fc876daf
Author: Frederic Cambus <fred@statdns.com>
Date:   Mon,  1 Oct 2018 10:25:37 +0200

Merge pull request #21 from bart-d/master

SAUCE 00.5 change filler to tinfos
Diffstat:
Msrc/main.c | 3+++
Msrc/sauce.c | 4++--
Msrc/sauce.h | 2+-
3 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/src/main.c b/src/main.c @@ -344,6 +344,9 @@ int main(int argc, char *argv[]) { if (record->tinfo4 != 0) { fprintf(stderr, "Tinfo4: %d\n", record->tinfo4); } + if (record->tinfos != 0) { + fprintf(stderr, "Tinfos: %s\n", record->tinfos); + } if (record->comments > 0) { fprintf(stderr, "Comments: "); for (int32_t i = 0; i < record->comments; i++) { diff --git a/src/sauce.c b/src/sauce.c @@ -69,8 +69,8 @@ void readRecord(FILE *file, sauce *record) fread(&(record->tinfo4), sizeof (record->tinfo4), 1, file); fread(&(record->comments), sizeof (record->comments), 1, file); fread(&(record->flags), sizeof (record->flags), 1, file); - fread(record->filler, sizeof (record->filler) - 1, 1, file); - record->filler[sizeof (record->filler) - 1] = '\0'; + fread(record->tinfos, sizeof (record->tinfos) - 1, 1, file); + record->tinfos[sizeof (record->tinfos) - 1] = '\0'; if (ferror(file) != EXIT_SUCCESS) { free(record); diff --git a/src/sauce.h b/src/sauce.h @@ -40,7 +40,7 @@ typedef struct { unsigned short tinfo4; unsigned char comments; unsigned char flags; - char filler[23]; + char tinfos[23]; char **comment_lines; } sauce;