From b77c7ad996375085deca16ee8ffffd2363632624 Mon Sep 17 00:00:00 2001 From: Bobbi Webber-Manners Date: Tue, 28 Jul 2020 19:20:00 -0400 Subject: [PATCH] The filesize needs a 32 bit variable, not 16 --- apps/attacher.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/attacher.c b/apps/attacher.c index 7892786..6d30207 100644 --- a/apps/attacher.c +++ b/apps/attacher.c @@ -233,7 +233,8 @@ done: */ void attach(char *fname) { FILE *fp, *fp2, *destfp; - uint16_t chars, i, size; + uint16_t chars, i; + uint32_t size; char *s; videomode(VIDEOMODE_80COL); printf("%c%s ATTACHER%c\n\n", 0x0f, PROGNAME, 0x0e);