From 6dc97e95453230d0f5ea8d72feee98c561f078cc Mon Sep 17 00:00:00 2001 From: dolorous Date: Mon, 2 Jun 2008 21:19:04 +0000 Subject: 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 --- crawl-ref/source/format.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'crawl-ref') 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--; -- cgit v1.2.3-54-g00ecf