diff --git a/ostd/string.hh b/ostd/string.hh index c6708c5..d237f72 100644 --- a/ostd/string.hh +++ b/ostd/string.hh @@ -866,10 +866,6 @@ public: TempCString(CharRangeBase input, char *sbuf, Size bufsize) : p_buf(nullptr), p_allocated(false) { if (!input.size()) return; - if (input[input.size() - 1] == '\0') { - p_buf = (T *)input.data(); - return; - } if (input.size() >= bufsize) { p_buf = new T[input.size() + 1]; p_allocated = true;