From 3fcbf718bcf5c937fa62c31abb13dacc606f3893 Mon Sep 17 00:00:00 2001 From: Bjørn Lindeijer Date: Sat, 11 Dec 2004 21:10:51 +0000 Subject: Pretty much fix the segfault by removing the copying and not unloading the datafile. Not sure what was wrong exactly though. --- src/log.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/log.cpp') diff --git a/src/log.cpp b/src/log.cpp index 578fa957..ecc54aea 100644 --- a/src/log.cpp +++ b/src/log.cpp @@ -85,7 +85,7 @@ void error(const string error_text) { #ifdef WIN32 MessageBox(NULL, error_text.c_str(), "Error", MB_ICONERROR|MB_OK); #else - fprintf(stderr, "Error: %s\n", error_text); + fprintf(stderr, "Error: %s\n", error_text.c_str()); #endif exit(1); } -- cgit v1.2.3-60-g2f50