From ffd2df9494166061410def81579bea1584d4458f Mon Sep 17 00:00:00 2001 From: whitequark Date: Tue, 17 Mar 2015 20:02:04 +0300 Subject: [PATCH] Fix dbg() not writing a newline. puts() appends a newline, but fputs() does not. Who needs consistency when you have undefined behavior? Oh, wait. --- src/fltk/fltkutil.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/fltk/fltkutil.cpp b/src/fltk/fltkutil.cpp index 7de98583..78c95d7f 100644 --- a/src/fltk/fltkutil.cpp +++ b/src/fltk/fltkutil.cpp @@ -28,6 +28,7 @@ void dbp(const char *str, ...) va_end(f); fputs(buf, stderr); + fputc('\n', stderr); } void GetAbsoluteFilename(char *file)