diff --git a/stratosphere/dmnt.gen2/source/dmnt2_debug_process.cpp b/stratosphere/dmnt.gen2/source/dmnt2_debug_process.cpp index 2f88bad0a..90505a4a9 100644 --- a/stratosphere/dmnt.gen2/source/dmnt2_debug_process.cpp +++ b/stratosphere/dmnt.gen2/source/dmnt2_debug_process.cpp @@ -187,7 +187,7 @@ namespace ams::dmnt { /* Get module name buffer. */ char *module_name = module.GetNameBuffer(); - module_name[0] = 0; + std::memset(module_name, 0, ModuleDefinition::PathLengthMax); /* Read module path. */ struct {