summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/crash-u.cc
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2009-09-08 10:25:19 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2009-09-08 10:25:19 +0000
commit49eed80f31350d41cd2fc67fe4cb9dbc58027995 (patch)
tree1aae0d77ed191e8aca919819346bc26e2bc6facf /crawl-ref/source/crash-u.cc
parent7833d2e15408a184bf8b21db22d74cc0fe01d104 (diff)
downloadcrawl-ref-49eed80f31350d41cd2fc67fe4cb9dbc58027995.tar.gz
crawl-ref-49eed80f31350d41cd2fc67fe4cb9dbc58027995.zip
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
Diffstat (limited to 'crawl-ref/source/crash-u.cc')
-rw-r--r--crawl-ref/source/crash-u.cc4
1 files 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