[vlc-devel] [PATCH] ccda: fix compiler warning
George Vaindirlis
george.vdl1 at gmail.com
Mon Apr 12 16:50:44 UTC 2021
fix warning: ā%uā directive output may be truncated writing between 1 and 10 bytes into a region of size 5 [-Wformat-truncation=]
(Please reject the previous patch from me with the same description, it has a typo in the code)
---
modules/access/cdda.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/access/cdda.c b/modules/access/cdda.c
index 9260b833ed..42ec944d12 100644
--- a/modules/access/cdda.c
+++ b/modules/access/cdda.c
@@ -635,7 +635,7 @@ static void AccessGetMeta(stream_t *access, vlc_meta_t *meta)
vlc_meta_SetGenre(meta, str);
const unsigned year = cddb_disc_get_year(sys->cddb);
- if (year != 0)
+ if (year != 0 && year < 10000)
{
char yearbuf[5];
--
2.30.2
More information about the vlc-devel
mailing list