From 65f1fb1dc7f153903ea707692ef5df640dd0261c Mon Sep 17 00:00:00 2001 From: Bart Roossien Date: Sat, 18 Oct 2025 21:53:55 +0200 Subject: [PATCH] fix: Revert strlcat on pointer arguments. --- Core/Libraries/Source/debug/debug_debug.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Core/Libraries/Source/debug/debug_debug.cpp b/Core/Libraries/Source/debug/debug_debug.cpp index 9aeb7ec4cd..314b911e63 100644 --- a/Core/Libraries/Source/debug/debug_debug.cpp +++ b/Core/Libraries/Source/debug/debug_debug.cpp @@ -348,7 +348,7 @@ bool Debug::AssertDone(void) "time being (stops logging this assertion as well)."; char *help=(char *)DebugAllocMemory(ioBuffer[curType].used+strlen(addInfo)+1); strcpy(help,ioBuffer[curType].buffer+82); - strlcat(help, addInfo, ARRAY_SIZE(help)); + strcat(help, addInfo); // First hit? Then do a stack trace if (curFrameEntry->hits==1) @@ -612,7 +612,7 @@ bool Debug::CrashDone(bool die) #endif char *help=(char *)DebugAllocMemory(ioBuffer[curType].used+strlen(addInfo)+1); strcpy(help,ioBuffer[curType].buffer+82); - strlcat(help, addInfo, ARRAY_SIZE(help)); + strcat(help, addInfo); // First hit? Then do a stack trace if (curFrameEntry->hits==1)