From 5865ca79552e5adebc7efe99ff7cc3ccc971dc56 Mon Sep 17 00:00:00 2001 From: Jan Steemann Date: Tue, 8 Sep 2015 15:16:10 +0200 Subject: [PATCH] lol self --- lib/Basics/debugging.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Basics/debugging.cpp b/lib/Basics/debugging.cpp index c99fb78ca5..400b41d43f 100644 --- a/lib/Basics/debugging.cpp +++ b/lib/Basics/debugging.cpp @@ -187,11 +187,11 @@ void TRI_AddFailurePointDebugging (char const* value) { return; } - TRI_Free(TRI_CORE_MEM_ZONE, FailurePoints); - memcpy(copy, FailurePoints, strlen(FailurePoints)); memcpy(copy + strlen(FailurePoints) - 1, checkValue, n); copy[strlen(FailurePoints) + n - 1] = '\0'; + + TRI_Free(TRI_CORE_MEM_ZONE, FailurePoints); } FailurePoints = copy;