Fix empty strings not being zero terminated
This commit is contained in:
parent
8f30e37507
commit
b42885ef71
|
@ -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);
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user