Skip to content

Commit 46a6b48

Browse files
committed
correcting the length of read string
1 parent 1b27d5e commit 46a6b48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dds.net-connector-cpp.lib/connector/src/internal/src/variables/enc_dec_primitive.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ std::string
4747

4848

4949
int strIndex = 0;
50-
std::u16string u16(length, ' ');
50+
std::u16string u16(length / 2, ' ');
5151

5252

5353
for (int i = 0; i < length; i += 2)

0 commit comments

Comments
 (0)