diff options
author | Alexander Harkness <bearbin@gmail.com> | 2013-10-19 22:30:54 +0200 |
---|---|---|
committer | Alexander Harkness <bearbin@gmail.com> | 2013-10-19 22:30:54 +0200 |
commit | 3272b45bc53dd50e830f507e98643281d85ecab1 (patch) | |
tree | 5cc10b45508d0180b1f8076b752e94ba81e454c9 /source | |
parent | Fixed compile error. silly parentheses creeping in. (diff) | |
download | cuberite-3272b45bc53dd50e830f507e98643281d85ecab1.tar cuberite-3272b45bc53dd50e830f507e98643281d85ecab1.tar.gz cuberite-3272b45bc53dd50e830f507e98643281d85ecab1.tar.bz2 cuberite-3272b45bc53dd50e830f507e98643281d85ecab1.tar.lz cuberite-3272b45bc53dd50e830f507e98643281d85ecab1.tar.xz cuberite-3272b45bc53dd50e830f507e98643281d85ecab1.tar.zst cuberite-3272b45bc53dd50e830f507e98643281d85ecab1.zip |
Diffstat (limited to 'source')
-rw-r--r-- | source/WebAdmin.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/WebAdmin.cpp b/source/WebAdmin.cpp index a81d85f5f..d0b9648d9 100644 --- a/source/WebAdmin.cpp +++ b/source/WebAdmin.cpp @@ -402,6 +402,7 @@ AString cWebAdmin::GetHTMLEscapedString( const AString& a_Input ) // Define a string to write the output to. AString dst = ""; + dst.reserve(a_Input.length()); // Loop over input and substitute HTML characters for their alternatives. for (size_t i = 0; i < a_Input.length(); i++) { |