From 9351499b2d3d6aa751356d012005165eaaaa3b8b Mon Sep 17 00:00:00 2001 From: unknown Date: Fri, 21 Jan 2005 12:50:18 +0100 Subject: [PATCH] EventLogger.cpp: fixed node id printout bug ndb/src/common/debugger/EventLogger.cpp: fixed node id printout bug --- ndb/src/common/debugger/EventLogger.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ndb/src/common/debugger/EventLogger.cpp b/ndb/src/common/debugger/EventLogger.cpp index 32a170d27a4..5a534b36b59 100644 --- a/ndb/src/common/debugger/EventLogger.cpp +++ b/ndb/src/common/debugger/EventLogger.cpp @@ -789,7 +789,8 @@ EventLogger::getText(char * dst, size_t dst_len, BaseString::snprintf(dst, dst_len, "Node %u: ", nodeId); pos= strlen(dst); } - textF(dst,dst_len,theData); + if (dst_len-pos > 0) + textF(dst+pos,dst_len-pos,theData); return dst; }