this doesn't actually happen
parent
a63cf1edb1
commit
6c4fd3d8ae
|
@ -866,10 +866,6 @@ public:
|
||||||
TempCString(CharRangeBase<const T> input, char *sbuf, Size bufsize)
|
TempCString(CharRangeBase<const T> input, char *sbuf, Size bufsize)
|
||||||
: p_buf(nullptr), p_allocated(false) {
|
: p_buf(nullptr), p_allocated(false) {
|
||||||
if (!input.size()) return;
|
if (!input.size()) return;
|
||||||
if (input[input.size() - 1] == '\0') {
|
|
||||||
p_buf = (T *)input.data();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
if (input.size() >= bufsize) {
|
if (input.size() >= bufsize) {
|
||||||
p_buf = new T[input.size() + 1];
|
p_buf = new T[input.size() + 1];
|
||||||
p_allocated = true;
|
p_allocated = true;
|
||||||
|
|
Loading…
Reference in New Issue