diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-06-02 21:11:13 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-06-02 21:11:13 +0000 |
commit | c28000887315cd6f4b0c92b25ac95e9675111cf5 (patch) | |
tree | d22f1ce92d31ab84bdd62209857ad7d1da290d72 /crawl-ref/source/format.cc | |
parent | bd07d623d9f5c058d73ba3e454363c2fee542997 (diff) | |
download | crawl-ref-c28000887315cd6f4b0c92b25ac95e9675111cf5.tar.gz crawl-ref-c28000887315cd6f4b0c92b25ac95e9675111cf5.zip |
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
Diffstat (limited to 'crawl-ref/source/format.cc')
-rw-r--r-- | crawl-ref/source/format.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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 |