Usage of std::string.append causes "Stack around the variable 'result' was corrupted"
<p>I have the following code :</p>

<pre><code>std::string Utils::get() {
    std::string result;
    result.append(1, 'x');
    result.append(1, 'x');
    result.append(1, 'x');
    return result;
}
</code></pre>

<p>I expect 'xxx' to be returned.</p>

<p>However, when I run under debug mode, I get the warning</p>

<p>"Stack around the variable 'result' was corrupted"</p>

<p>Am I using append function the wrong way?</p>
