clover/util: Null-terminate the result of compat::string::c_str().

Reported-by: EdB <edb+mesa@sigluy.net>
This commit is contained in:
Francisco Jerez 2014-08-18 15:25:35 +03:00
parent 923c72982e
commit b4539274b6

View file

@ -361,7 +361,9 @@ namespace clover {
const char *
c_str() const {
return begin();
v.reserve(size() + 1);
*v.end() = 0;
return v.begin();
}
const char *