Fix empty strings not being zero terminated
This commit is contained in:
parent
8f30e37507
commit
b42885ef71
|
@ -204,7 +204,7 @@ public:
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void release();
|
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);
|
void set_short(const char* data, size_t size);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user