summaryrefslogtreecommitdiff
path: root/src/modules/filters/utf8utf16.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/filters/utf8utf16.cpp')
-rw-r--r--src/modules/filters/utf8utf16.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/modules/filters/utf8utf16.cpp b/src/modules/filters/utf8utf16.cpp
index a770d5f..e5b96d7 100644
--- a/src/modules/filters/utf8utf16.cpp
+++ b/src/modules/filters/utf8utf16.cpp
@@ -63,6 +63,7 @@ char UTF8UTF16::processText(SWBuf &text, const SWKey *key, const SWModule *modul
}
text.setSize(text.size()+2);
*((__u16 *)(text.getRawData()+(text.size()-2))) = (__u16)0;
+ text.setSize(text.size()-2);
return 0;