diff --git a/Core/HLE/proAdhocServer.cpp b/Core/HLE/proAdhocServer.cpp index 4138155119..0b6c362294 100644 --- a/Core/HLE/proAdhocServer.cpp +++ b/Core/HLE/proAdhocServer.cpp @@ -1406,7 +1406,7 @@ void game_product_override(SceNetAdhocctlProductCode * product) }*/ db_productid unkproduct; strncpy(unkproduct.id, productid, sizeof(unkproduct.id)); - strncpy(unkproduct.name, productid, sizeof(productid)); + strncpy(unkproduct.name, productid, sizeof(unkproduct.name)); productids.push_back(unkproduct); //productids[productids.size()] = unkproduct; // Log Addition INFO_LOG(Log::sceNet, "AdhocServer: Added Unknown Product ID %s to Database", productid); diff --git a/Core/HLE/sceNp.cpp b/Core/HLE/sceNp.cpp index 42ef8ae20a..8b3d413665 100644 --- a/Core/HLE/sceNp.cpp +++ b/Core/HLE/sceNp.cpp @@ -39,8 +39,9 @@ int npParentalControl = PARENTAL_CONTROL_ENABLED; int npUserAge = 24; // faking user Age to 24 yo int npChatRestriction = 0; // default/initial value on Patapon 3 is 1 (restricted boolean?) SceNpMyLanguages npMyLangList = { 1033, 2057, 1036 }; -char npCountryCode[3] = "fr"; // dummy data taken from https://www.psdevwiki.com/ps3/X-I-5-Ticket -char npRegionCode[3] = "c9"; // not sure what "c9" meant, since it was close to country code data, might be region-related data? +// Fields are 4-sized, so the data needs to be too. +char npCountryCode[4] = "fr"; // dummy data taken from https://www.psdevwiki.com/ps3/X-I-5-Ticket. France? +char npRegionCode[4] = "c9"; // not sure what "c9" meant, since it was close to country code data, might be region-related data? std::string npOnlineId = "DummyOnlineId"; // SceNpOnlineId struct? std::string npServiceId = ""; // UNO game uses EP2006-NPEH00020_00 std::string npAvatarUrl = "http://DummyAvatarUrl"; // SceNpAvatarUrl struct?