summaryrefslogtreecommitdiff
path: root/library/ColorText.cpp
diff options
context:
space:
mode:
authorAlexander Gavrilov2012-03-31 22:26:41 +0400
committerAlexander Gavrilov2012-03-31 22:26:41 +0400
commit9d6e26fa5fe6781d0650c14a7302981415680de9 (patch)
treeb6b8a5f203486b33311519a0c3150fbb46645e77 /library/ColorText.cpp
parent0f41608ed4b808205dd8734bbc52de64f6501c98 (diff)
downloaddfhack-9d6e26fa5fe6781d0650c14a7302981415680de9.tar.gz
dfhack-9d6e26fa5fe6781d0650c14a7302981415680de9.tar.bz2
dfhack-9d6e26fa5fe6781d0650c14a7302981415680de9.tar.xz
Fix crashing color_ostream::printerr due to vfprintf vs fprintf mixup.
Also enable heap clearing in gdb mode, and fix a few newlines.
Diffstat (limited to 'library/ColorText.cpp')
-rw-r--r--library/ColorText.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/ColorText.cpp b/library/ColorText.cpp
index 5d6e1d82..2811a711 100644
--- a/library/ColorText.cpp
+++ b/library/ColorText.cpp
@@ -125,7 +125,7 @@ void color_ostream::vprinterr(const char *format, va_list args)
color_value save = cur_color;
if (log_errors_to_stderr)
- fprintf(stderr, format, args);
+ vfprintf(stderr, format, args);
color(COLOR_LIGHTRED);
vprint(format, args);