From 6c4fd3d8aedd4e5c8fb6e67d784a6c8eac434108 Mon Sep 17 00:00:00 2001 From: q66 Date: Sat, 19 Mar 2016 20:23:46 +0000 Subject: [PATCH] this doesn't actually happen --- ostd/string.hh | 4 ---- 1 file changed, 4 deletions(-) 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;