From: Twinaphex Date: Thu, 25 Dec 2014 13:14:09 +0000 (+0100) Subject: Merge pull request #4 from vobe/master X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3ff6f188f5883d9f626feadddc26130dc18dd5ba;hp=2babf3518e258cc3d6649f6e34a267e83dffd7d9;p=picodrive.git Merge pull request #4 from vobe/master Prevent segfault while scanning for MP3 files --- diff --git a/pico/cd/cd_image.c b/pico/cd/cd_image.c index 07b55ce..ae2ef0c 100644 --- a/pico/cd/cd_image.c +++ b/pico/cd/cd_image.c @@ -61,6 +61,7 @@ static void to_upper(char *d, const char *s) else *d = *s; } + *d = 0; } // cdd.c uses lba - 150