mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 00:38:48 +02:00
clover/util: Null-terminate the result of compat::string::c_str().
Reported-by: EdB <edb+mesa@sigluy.net>
This commit is contained in:
parent
923c72982e
commit
b4539274b6
1 changed files with 3 additions and 1 deletions
|
|
@ -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 *
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue