From 685948368e6b28b97e1b91bdfe5921519359a033 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sun, 14 Jun 2020 18:03:00 +0200 Subject: [PATCH] (libretro-db) Should fix buffer overflow - should fix Database Information and Scan folder/File with GCC 10 --- libretro-db/libretrodb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libretro-db/libretrodb.c b/libretro-db/libretrodb.c index a82e2399b1..4976bdcbf2 100644 --- a/libretro-db/libretrodb.c +++ b/libretro-db/libretrodb.c @@ -75,7 +75,7 @@ typedef struct libretrodb_metadata typedef struct libretrodb_header { - char magic_number[sizeof(MAGIC_NUMBER)-1]; + char magic_number[sizeof(MAGIC_NUMBER)]; uint64_t metadata_offset; } libretrodb_header_t;