summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/message.cc
diff options
context:
space:
mode:
authorharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2008-09-18 22:26:32 +0000
committerharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2008-09-18 22:26:32 +0000
commit6cc8e915a3781f940fc161b33e7aee9dfd7e5629 (patch)
treec2d0eb2e9c631c476f3c4db8316409ad97c776c7 /crawl-ref/source/message.cc
parent7879cb06150dfe95cc3a6f690f0258936d42ff54 (diff)
downloadcrawl-ref-6cc8e915a3781f940fc161b33e7aee9dfd7e5629.tar.gz
crawl-ref-6cc8e915a3781f940fc161b33e7aee9dfd7e5629.zip
Fixed security issue in replay_messages(). Fixes part of 2029644.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6949 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/message.cc')
-rw-r--r--crawl-ref/source/message.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/message.cc b/crawl-ref/source/message.cc
index b480ca392d..989b9f2140 100644
--- a/crawl-ref/source/message.cc
+++ b/crawl-ref/source/message.cc
@@ -1036,7 +1036,7 @@ void replay_messages(void)
case FSOP_TEXT:
textcolor( colour );
cgotoxy(curcol, wherey(), GOTO_CRT);
- cprintf(fs.ops[j].text.c_str());
+ cprintf("%s", fs.ops[j].text.c_str());
curcol += multibyte_strlen(fs.ops[j].text);
break;
case FSOP_CURSOR: