diff --git a/src/Functions/translate.cpp b/src/Functions/translate.cpp index 0d434acc840..5d8d3f52793 100644 --- a/src/Functions/translate.cpp +++ b/src/Functions/translate.cpp @@ -103,8 +103,7 @@ struct TranslateImpl /// Technically '\0' can be mapped into other character, /// so we need to process '\0' delimiter separately *dst++ = 0; - ++data_size; - res_offsets[i] = data_size; + res_offsets[i] = ++data_size; } }