From 28d9ad258bbe7036704a439a827470733b680420 Mon Sep 17 00:00:00 2001 From: James Chen Date: Tue, 26 Sep 2017 15:09:16 +0800 Subject: [PATCH] Removes unused \n string ending since LOGD and LOGE in jswrapper need \n at the end of string. --- native/cocos/scripting/js-bindings/jswrapper/config.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/native/cocos/scripting/js-bindings/jswrapper/config.cpp b/native/cocos/scripting/js-bindings/jswrapper/config.cpp index 4f456249a6..522ee961e8 100644 --- a/native/cocos/scripting/js-bindings/jswrapper/config.cpp +++ b/native/cocos/scripting/js-bindings/jswrapper/config.cpp @@ -30,8 +30,6 @@ static void _winLog(const char *format, va_list args) } while (true); - strcat(buf, "\n"); - int pos = 0; int len = strlen(buf); char tempBuf[MAX_LOG_LENGTH + 1] = { 0 };