Make corrections

This commit is contained in:
Joel16 2018-05-18 19:44:23 -05:00
parent 27009fcf19
commit af85ea80ed
2 changed files with 3 additions and 1 deletions

View File

@ -69,6 +69,6 @@ Result setsysGetColorSetId(ColorSetId* out);
/** /**
* @brief Gets the system's serial number. * @brief Gets the system's serial number.
* @param serial Pointer to output the serial to. (The buffer size needs to be at least 0x18 bytes) * @param serial Pointer to output the serial to. (The buffer size needs to be at least 0x19 bytes)
*/ */
Result setsysGetSerialNumber(char *serial); Result setsysGetSerialNumber(char *serial);

View File

@ -351,6 +351,8 @@ Result setsysGetSerialNumber(char *serial) {
IpcCommand c; IpcCommand c;
ipcInitialize(&c); ipcInitialize(&c);
if (serial) memset(serial, 0, 0x19);
struct { struct {
u64 magic; u64 magic;
u64 cmd_id; u64 cmd_id;