diff --git a/dbms/src/DataTypes/DataTypeFixedString.cpp b/dbms/src/DataTypes/DataTypeFixedString.cpp index 17e069d2084..cac908d515f 100644 --- a/dbms/src/DataTypes/DataTypeFixedString.cpp +++ b/dbms/src/DataTypes/DataTypeFixedString.cpp @@ -45,7 +45,7 @@ void DataTypeFixedString::serializeBinary(const IColumn & column, WriteBuffer & if (limit == 0 || offset + limit > size) limit = size - offset; - ostr.write(reinterpret_cast(&data[offset]), n * limit); + ostr.write(reinterpret_cast(&data[n * offset]), n * limit); }