1
0
Fork 0
mirror of https://github.com/Atmosphere-NX/Atmosphere.git synced 2024-12-30 06:06:02 +00:00

dmnt2: fix missing null-terminator for invalid command error

This commit is contained in:
jam1garner 2021-11-02 00:10:54 -04:00 committed by SciresM
parent ea61ac9ea6
commit 7e110ee8f7

View file

@ -2061,7 +2061,7 @@ namespace ams::dmnt {
SetReply(m_buffer, "[TODO] wait for program id 0x%lx\n", program_id); SetReply(m_buffer, "[TODO] wait for program id 0x%lx\n", program_id);
} else { } else {
SetReply(m_reply_packet, "Unknown command `%s`\n", command); 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);
} }
} }