]> git.sur5r.net Git - c128-kasse/blobdiff - src/config.c
Implement printing a header
[c128-kasse] / src / config.c
index 3ee69bde01c7b29a6469ae61e04ec0e116372e8e..266f441fe81de9800647c34ec7c22dc209c9b0db 100644 (file)
@@ -1,6 +1,6 @@
 /* 
  * RGB2R-C128-Kassenprogramm
- * (c) 2007-2009 phil_fry, sECuRE, sur5r
+ * © 2007-2009 phil_fry, sECuRE, sur5r
  * See LICENSE for license information
  *
  */
@@ -15,6 +15,7 @@
 #include "kasse.h"
 #include "general.h"
 #include "config.h"
+#include "print.h"
 
 /* NOTE: undocumented function which scratches files
    We need to use this function because linking unistd.h
@@ -70,7 +71,7 @@ static void lookup_needed_files() {
        if (log_num > 0) {
                log_num--;
 
-               sprintf(filename, "log-%d", log_num);
+               sprintf(filename, "log-%u", log_num);
                if ((c = cbm_open(lfn, (BYTE)8, (BYTE)CBM_READ, filename)) != 0) {
                        c128_perror(c, "cbm_open(log) for reading");
                        exit(1);