summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/format.cc
diff options
context:
space:
mode:
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--;