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(); } };