Change it back to snprintf().

This commit is contained in:
profi200 2015-03-01 20:28:22 +01:00
parent a2d2df17f9
commit 02b68eb1ae

View File

@ -199,7 +199,7 @@ Result AM_GetTitleProductCode(u8 mediatype, u64 titleID, char* productCode)
if((ret = svcSendSyncRequest(amHandle))!=0) return ret;
// The product code string can use the full 16 bytes without NULL terminator
if(productCode) memcpy(productCode, &cmdbuf[2], 16);
if(productCode) snprintf(productCode, 16, "%s", (char*)&cmdbuf[2]);
return (Result)cmdbuf[1];
}