From 49eed80f31350d41cd2fc67fe4cb9dbc58027995 Mon Sep 17 00:00:00 2001 From: dshaligram Date: Tue, 8 Sep 2009 10:25:19 +0000 Subject: Fix g++ complaining about using a non-literal string without a format string. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10644 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/crash-u.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crawl-ref/source/crash-u.cc') diff --git a/crawl-ref/source/crash-u.cc b/crawl-ref/source/crash-u.cc index ee8d033f24..28c2a52830 100644 --- a/crawl-ref/source/crash-u.cc +++ b/crawl-ref/source/crash-u.cc @@ -170,7 +170,7 @@ void write_stack_trace(FILE* file, int ignore_count) void write_stack_trace(FILE* file, int ignore_count) { const char* msg = "Unable to get stack trace on this platform." EOL; - fprintf(stderr, msg); - fprintf(file, msg); + fprintf(stderr, "%s", msg); + fprintf(file, "%s", msg); } #endif -- cgit v1.2.3-54-g00ecf