From f88606fbc1a2c213bbeb08bc5a7501ca91f78ae8 Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Sat, 15 Oct 2022 15:13:05 -0700 Subject: [PATCH] gdbstub: fix reading module name for homebrew --- stratosphere/dmnt.gen2/source/dmnt2_debug_process.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {