diff options
author | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-09-08 10:25:19 +0000 |
---|---|---|
committer | Darshan Shaligram <scintilla@gmail.com> | 2009-09-24 01:50:46 +0530 |
commit | b05bb66079a0725aec5d97f2ffec54d8f00b5698 (patch) | |
tree | f87cf88665a8c9e874a957c86883935792080f97 | |
parent | f284d478404c39e10de085fe203d8891db73e95c (diff) | |
download | crawl-ref-b05bb66079a0725aec5d97f2ffec54d8f00b5698.tar.gz crawl-ref-b05bb66079a0725aec5d97f2ffec54d8f00b5698.zip |
Fix g++ complaining about using a non-literal string without a format string.
-rw-r--r-- | crawl-ref/source/crash-u.cc | 4 |
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 |