Prevent segfault while scanning for MP3 files

Make sure the destination string is NULL-terminated when building the uppercase extension. The tmp_ext_u array is uninitialized when it's passed to this function.
This commit is contained in:
vobe 2014-12-25 12:11:32 +01:00
parent 2babf3518e
commit 8a601d66cb

View File

@ -61,6 +61,7 @@ static void to_upper(char *d, const char *s)
else
*d = *s;
}
*d = 0;
}
// cdd.c uses lba - 150