add a hack for Decap Attack
[picodrive.git] / pico / cd / cd_image.c
index 07b55ce..5638c9b 100644 (file)
 #include "cdd.h"
 #include "cue.h"
 
+#if defined(__GNUC__) && __GNUC__ >= 7
+#pragma GCC diagnostic ignored "-Wformat-truncation"
+#endif
+
 static int handle_mp3(const char *fname, int index)
 {
   track_t *track = &cdd.toc.tracks[index];
@@ -61,6 +65,7 @@ static void to_upper(char *d, const char *s)
     else
       *d = *s;
   }
+  *d = 0;
 }
 
 // cdd.c uses lba - 150