From 3e42b1155e892eae2dcd0ee62d0645ef43b889a5 Mon Sep 17 00:00:00 2001 From: retro-wertz Date: Sat, 3 Aug 2019 11:13:47 +0800 Subject: Silence warning -Wstringop-truncation -strncpy replaced with strcpy and memcpy where appropriate --- libpcsxcore/cdrom.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libpcsxcore/cdrom.c') diff --git a/libpcsxcore/cdrom.c b/libpcsxcore/cdrom.c index 17d65ab..a65ca54 100644 --- a/libpcsxcore/cdrom.c +++ b/libpcsxcore/cdrom.c @@ -877,7 +877,8 @@ void cdrInterrupt() { } 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; -- cgit v1.2.3