summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/format.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-06-02 21:19:04 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-06-02 21:19:04 +0000
commit6dc97e95453230d0f5ea8d72feee98c561f078cc (patch)
tree19abf25f95462c6971dc06eb9e3c834c562f3fd3 /crawl-ref/source/format.cc
parentf464ce5fba2fcf2fd34b4486c0fa19a6139bb6e5 (diff)
downloadcrawl-ref-6dc97e95453230d0f5ea8d72feee98c561f078cc.tar.gz
crawl-ref-6dc97e95453230d0f5ea8d72feee98c561f078cc.zip
Revert previous changes so that things work properly again.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5444 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/format.cc')
-rw-r--r--crawl-ref/source/format.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/crawl-ref/source/format.cc b/crawl-ref/source/format.cc
index be3eb2614c..d5d34fd768 100644
--- a/crawl-ref/source/format.cc
+++ b/crawl-ref/source/format.cc
@@ -149,15 +149,15 @@ void formatted_string::parse_string1(
{
// Break the string at the end of a line, if possible, so
// that none of the broken string ends up overwritten.
- std::string::size_type bound = currs.rfind(EOL, 998);
+ std::string::size_type bound = currs.rfind(EOL, 999);
if (bound != endpos)
bound += strlen(EOL);
else
- bound = 998;
+ bound = 999;
- fs.cprintf(currs.substr(0, bound + 1));
- if (currs.size() > bound + 1)
- currs = currs.substr(bound + 1);
+ fs.cprintf(currs.substr(0, bound));
+ if (currs.size() > bound)
+ currs = currs.substr(bound);
else
currs.clear();
tag--;