From b03423244e83a57e03bcf0599946ceafe03e3eac Mon Sep 17 00:00:00 2001 From: sECuRE Date: Fri, 28 Nov 2008 22:04:47 +0000 Subject: [PATCH] Use correct datatype for return value git-svn-id: https://shell.noname-ev.de/svn/kasse/c128@83 af93e077-1a23-4f1e-9cbe-9382a9d578f5 --- src/kasse.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/kasse.c b/src/kasse.c index c2c02a6..1ac4622 100644 --- a/src/kasse.c +++ b/src/kasse.c @@ -60,7 +60,7 @@ static void log_file(const char *s) { char *buffer = malloc(sizeof(char) * 64 * 100); char filename[8]; char read = 0; - BYTE c; + unsigned int c; if (buffer == NULL) { cprintf("No memory available\n"); } @@ -86,7 +86,7 @@ static void log_file(const char *s) { strcpy(buffer+read, s); c = cbm_write((BYTE)8, buffer, read+strlen(s)); if (c != (read+strlen(s))) { - cprintf("Could not save logfile, please make sure the floppy is not full!\n"); + cprintf("Could not save logfile (wrote %d bytes, wanted %d bytes), please make sure the floppy is not full!\n", c, (read+strlen(s))); sane_exit(); } cbm_close((BYTE)8); -- 2.39.5