From 11350904b5b8f8ef0c493418f25bbbe16e36c0a9 Mon Sep 17 00:00:00 2001 From: Maschell Date: Wed, 17 Jun 2020 14:26:01 +0200 Subject: [PATCH] Fix compiling warnings --- src/main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index a1486e9..b078b7f 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -91,9 +91,9 @@ void fillXmlForTitleID(uint32_t titleid_upper, uint32_t titleid_lower, ACPMetaXm out_buf->reserved_flag0 = 0x00010001; out_buf->reserved_flag6 = 0x00000003; out_buf->pc_usk = 128; - strncpy(out_buf->product_code, "WUP-P-HBLD", strlen("WUP-P-HBLD")); - strncpy(out_buf->content_platform, "WUP", strlen("WUP")); - strncpy(out_buf->company_code, "0001", strlen("0001")); + strncpy(out_buf->product_code, "WUP-P-HBLD", strlen("WUP-P-HBLD") + 1); + strncpy(out_buf->content_platform, "WUP", strlen("WUP") + 1); + strncpy(out_buf->company_code, "0001", strlen("0001") + 1); } DECL_FUNCTION(int32_t, MCP_TitleList, uint32_t handle, uint32_t *outTitleCount, MCPTitleListType *titleList, uint32_t size) {