mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2024-11-08 05:01:44 +00:00
dmnt2: fix missing null-terminator for invalid command error
This commit is contained in:
parent
6145b3b72c
commit
c17ad1e0e3
1 changed files with 1 additions and 1 deletions
|
@ -2061,7 +2061,7 @@ namespace ams::dmnt {
|
|||
SetReply(m_buffer, "[TODO] wait for program id 0x%lx\n", program_id);
|
||||
} else {
|
||||
SetReply(m_reply_packet, "Unknown command `%s`\n", command);
|
||||
std::memcpy(m_buffer, m_reply_packet, std::strlen(m_reply_packet));
|
||||
std::memcpy(m_buffer, m_reply_packet, std::strlen(m_reply_packet) + 1);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue