cdrom: take a minor change from libretro
authornotaz <notasas@gmail.com>
Fri, 2 Sep 2022 22:54:28 +0000 (01:54 +0300)
committernotaz <notasas@gmail.com>
Fri, 2 Sep 2022 22:54:28 +0000 (01:54 +0300)
libpcsxcore/cdrom.c

index 2b30e89..bc5e2ae 100644 (file)
@@ -1018,7 +1018,8 @@ void cdrInterrupt(void) {
                        }
                        cdr.Result[0] |= (cdr.Result[1] >> 4) & 0x08;
 
-                       strncpy((char *)&cdr.Result[4], "PCSX", 4);
+                       /* This adds the string "PCSX" in Playstation bios boot screen */
+                       memcpy((char *)&cdr.Result[4], "PCSX", 4);
                        cdr.Stat = Complete;
                        break;