From 5382c0a30b9d55ed0da17b8429029f8f7e766db5 Mon Sep 17 00:00:00 2001 From: whitecum1488 Date: Thu, 16 Jul 2026 09:39:22 +0300 Subject: [PATCH] m --- src/gl-debug.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/gl-debug.cpp b/src/gl-debug.cpp index 8cdd284..7bcb221 100644 --- a/src/gl-debug.cpp +++ b/src/gl-debug.cpp @@ -38,12 +38,14 @@ struct GLDebugLoggerPrivate{ ~GLDebugLoggerPrivate(){} void writeTimestamp(){ + //https://stackoverflow.com/questions/9628637/how-can-i-get-rid-of-n-from-string-in-c time(×tamp); - *stream << "[GLDEBUG] [" << ctime(×tamp) << "]"; + char foo[strlen(ctime(×tamp)) - 1] = ctime(×tamp); + *stream << "[GLDEBUG] [" << foo << "]"; } void writeLine(const char *line){ - *stream << line << "\n"; + *stream << line << "/n"; stream->flush(); } };