From b05bb66079a0725aec5d97f2ffec54d8f00b5698 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. --- crawl-ref/source/crash-u.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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