summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/unicode.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2011-04-01 16:09:22 +0200
committerAdam Borowski <kilobyte@angband.pl>2011-04-01 16:09:22 +0200
commitb1159576b8e628febf48c91ec91b21e6d573a84b (patch)
tree5393f7d0b365141ce8a882fda6c36e70dbec25dd /crawl-ref/source/unicode.cc
parent6e787a6da71bc9ddc49d2bb2d6fcfef3c055f86e (diff)
downloadcrawl-ref-b1159576b8e628febf48c91ec91b21e6d573a84b.tar.gz
crawl-ref-b1159576b8e628febf48c91ec91b21e6d573a84b.zip
Fix some strings being truncated.
Diffstat (limited to 'crawl-ref/source/unicode.cc')
-rw-r--r--crawl-ref/source/unicode.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/unicode.cc b/crawl-ref/source/unicode.cc
index ab6a6b6828..65066bc3e7 100644
--- a/crawl-ref/source/unicode.cc
+++ b/crawl-ref/source/unicode.cc
@@ -530,7 +530,7 @@ std::string chop_string(const char *s, int width, bool spaces = true)
}
if (spaces && width)
- return std::string(s0, s - s0) + std::string(width, 0);
+ return std::string(s0, s - s0) + std::string(width, ' ');
return std::string(s0, s - s0);;
}