mirror of
https://github.com/switchbrew/libnx.git
synced 2025-07-04 18:42:15 +02:00
SetDeviceNickname: the input buffer length does not seem to matter.
This commit is contained in:
parent
808130ad6b
commit
ef28afa520
@ -184,6 +184,6 @@ Result setsysGetDeviceNickname(char* buffer);
|
||||
|
||||
/**
|
||||
* @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);
|
||||
|
@ -724,7 +724,7 @@ Result setsysSetDeviceNickname(const char* buffer) {
|
||||
IpcCommand c;
|
||||
ipcInitialize(&c);
|
||||
|
||||
ipcAddSendBuffer(&c, buffer, 0x80, BufferType_Normal);
|
||||
ipcAddSendBuffer(&c, buffer, strlen(buffer) + 1, BufferType_Normal);
|
||||
|
||||
struct {
|
||||
u64 magic;
|
||||
|
Loading…
Reference in New Issue
Block a user