Fix empty strings not being zero terminated

This commit is contained in:
Maxime Coste 2020-03-28 19:53:19 +11:00
parent 8f30e37507
commit b42885ef71

View File

@ -204,7 +204,7 @@ public:
private:
void release();
void set_empty() { s.size = 1; }
void set_empty() { s.size = 1; s.string[0] = 0; }
void set_short(const char* data, size_t size);
};