diff options
author | Florian Diebold <flodiebold@gmail.com> | 2012-07-01 20:51:11 +0200 |
---|---|---|
committer | Florian Diebold <flodiebold@gmail.com> | 2012-07-01 20:51:11 +0200 |
commit | fd589a28d815f521c8f53d730cebdd8d32337529 (patch) | |
tree | e508017afef73b343772d6cc79e437ced59b3e9f /crawl-ref/source/unicode.cc | |
parent | 149bde4dfba07d3d13f531ac63c69d9c6af1989b (diff) | |
download | crawl-ref-fd589a28d815f521c8f53d730cebdd8d32337529.tar.gz crawl-ref-fd589a28d815f521c8f53d730cebdd8d32337529.zip |
Fix a typo/endless loop in wcstoutf8.
Diffstat (limited to 'crawl-ref/source/unicode.cc')
-rw-r--r-- | crawl-ref/source/unicode.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/unicode.cc b/crawl-ref/source/unicode.cc index aa6773ba21..357ec1dfb1 100644 --- a/crawl-ref/source/unicode.cc +++ b/crawl-ref/source/unicode.cc @@ -242,7 +242,7 @@ std::string wcstoutf8(const std::wstring &s) { char buf[4]; int r = wctoutf8(buf, s[j]); - for (int i = 0; i < r; j++) + for (int i = 0; i < r; i++) out.push_back(buf[i]); } |