From: sECuRE Date: Fri, 28 Nov 2008 22:04:47 +0000 (+0000) Subject: Use correct datatype for return value X-Git-Tag: rgb2rv6~26 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b03423244e83a57e03bcf0599946ceafe03e3eac;p=c128-kasse Use correct datatype for return value git-svn-id: https://shell.noname-ev.de/svn/kasse/c128@83 af93e077-1a23-4f1e-9cbe-9382a9d578f5 --- 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);