Skip to content

Commit 985df94

Browse files
authored
Update TStringBase.h
1 parent 4aa63aa commit 985df94

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/cppcore/Common/TStringBase.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ inline void TStringBase<T>::copyFrom(TStringBase<T> &base, const T *ptr, size_t
167167
base.mCapacity = size;
168168
targetPtr = base.mStringBuffer;
169169
}
170-
memcpy(targetPtr, ptr, size);
170+
memcpy(targetPtr, ptr, size * sizeof(T));
171171
base.mSize = size;
172172
}
173173
}

0 commit comments

Comments
 (0)