diff --git a/pcsx2/CDVD/BlockdumpFileReader.cpp b/pcsx2/CDVD/BlockdumpFileReader.cpp index b4f9f736a1..8d1b073763 100644 --- a/pcsx2/CDVD/BlockdumpFileReader.cpp +++ b/pcsx2/CDVD/BlockdumpFileReader.cpp @@ -34,7 +34,7 @@ bool BlockdumpFileReader::DetectBlockdump(AsyncFileReader* reader) reader->SetBlockSize(1); - char buf[4]; + char buf[5] = {0}; reader->ReadSync(buf, 0, 4); bool isbd = (strncmp(buf, "BDV2", 4) == 0);