From c28000887315cd6f4b0c92b25ac95e9675111cf5 Mon Sep 17 00:00:00 2001 From: dolorous Date: Mon, 2 Jun 2008 21:11:13 +0000 Subject: Fix off-by-one error (oops). git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5441 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/format.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crawl-ref/source/format.cc') diff --git a/crawl-ref/source/format.cc b/crawl-ref/source/format.cc index f4120ce281..8f39bea3f6 100644 --- a/crawl-ref/source/format.cc +++ b/crawl-ref/source/format.cc @@ -149,7 +149,7 @@ 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, 999); + std::string::size_type bound = currs.rfind(EOL, 998); if (bound != endpos) bound += strlen(EOL); else -- cgit v1.2.3-54-g00ecf