From 13fab97ccf3297292728cca2d356339cc8e5ee5a Mon Sep 17 00:00:00 2001 From: retro-wertz Date: Sat, 3 Aug 2019 08:35:12 +0800 Subject: Silence warning -Wformat-overflow - Increasing the maximum size of destination char array to x2 to silence this warning. --- libpcsxcore/ppf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libpcsxcore/ppf.c') diff --git a/libpcsxcore/ppf.c b/libpcsxcore/ppf.c index edebdd0..f6ccfca 100644 --- a/libpcsxcore/ppf.c +++ b/libpcsxcore/ppf.c @@ -183,7 +183,7 @@ void BuildPPFCache() { char method, undo = 0, blockcheck = 0; int dizlen, dizyn; unsigned char ppfmem[512]; - char szPPF[MAXPATHLEN]; + char szPPF[MAXPATHLEN * 2]; int count, seekpos, pos; u32 anz; // use 32-bit to avoid stupid overflows s32 ladr, off, anx; -- cgit v1.2.3