Skip to content

Commit 65f1fb1

Browse files
author
Bart Roossien
committed
fix: Revert strlcat on pointer arguments.
1 parent b838c65 commit 65f1fb1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Core/Libraries/Source/debug/debug_debug.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ bool Debug::AssertDone(void)
348348
"time being (stops logging this assertion as well).";
349349
char *help=(char *)DebugAllocMemory(ioBuffer[curType].used+strlen(addInfo)+1);
350350
strcpy(help,ioBuffer[curType].buffer+82);
351-
strlcat(help, addInfo, ARRAY_SIZE(help));
351+
strcat(help, addInfo);
352352

353353
// First hit? Then do a stack trace
354354
if (curFrameEntry->hits==1)
@@ -612,7 +612,7 @@ bool Debug::CrashDone(bool die)
612612
#endif
613613
char *help=(char *)DebugAllocMemory(ioBuffer[curType].used+strlen(addInfo)+1);
614614
strcpy(help,ioBuffer[curType].buffer+82);
615-
strlcat(help, addInfo, ARRAY_SIZE(help));
615+
strcat(help, addInfo);
616616

617617
// First hit? Then do a stack trace
618618
if (curFrameEntry->hits==1)

0 commit comments

Comments
 (0)