From 4b7da20a2de9b8dcd266e2d69b13259cb364d451 Mon Sep 17 00:00:00 2001 From: negativeExponent Date: Sat, 23 May 2020 12:09:11 +0800 Subject: Silence some warnings Silences some [-Wformat-truncation=] and [-Wstringop-truncation] --- libpcsxcore/misc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libpcsxcore/misc.c') diff --git a/libpcsxcore/misc.c b/libpcsxcore/misc.c index d877513..d42576c 100644 --- a/libpcsxcore/misc.c +++ b/libpcsxcore/misc.c @@ -392,7 +392,7 @@ int CheckCdrom() { } if (CdromLabel[0] == ' ') { - strncpy(CdromLabel, CdromId, 9); + memcpy(CdromLabel, CdromId, 9); } SysPrintf(_("CD-ROM Label: %.32s\n"), CdromLabel); SysPrintf(_("CD-ROM ID: %.9s\n"), CdromId); -- cgit v1.2.3