SetDeviceNickname: the input buffer length does not seem to matter.

This commit is contained in:
The Dax 2019-06-03 19:57:19 -04:00
parent 808130ad6b
commit ef28afa520
2 changed files with 2 additions and 2 deletions

View File

@ -184,6 +184,6 @@ Result setsysGetDeviceNickname(char* buffer);
/** /**
* @brief Sets the system's nickname. * @brief Sets the system's nickname.
* @param buffer Pointer to read the nickname from. (The buffer size needs to be at least 0x80 bytes) * @param buffer Pointer to read the nickname from.
*/ */
Result setsysSetDeviceNickname(const char* buffer); Result setsysSetDeviceNickname(const char* buffer);

View File

@ -724,7 +724,7 @@ Result setsysSetDeviceNickname(const char* buffer) {
IpcCommand c; IpcCommand c;
ipcInitialize(&c); ipcInitialize(&c);
ipcAddSendBuffer(&c, buffer, 0x80, BufferType_Normal); ipcAddSendBuffer(&c, buffer, strlen(buffer) + 1, BufferType_Normal);
struct { struct {
u64 magic; u64 magic;