diff options
author | Francisco Jerez <[email protected]> | 2014-08-18 09:05:25 +0300 |
---|---|---|
committer | Francisco Jerez <[email protected]> | 2014-09-05 09:27:20 +0300 |
commit | 995f7b37dad75999ce09f29fe999a8c30e899bb0 (patch) | |
tree | d5482fb15c052e944deb94c3196b009364fac457 /src/gallium/state_trackers/clover/core | |
parent | 864c463485aafaa2802b18a7427f8b75dc96e3ef (diff) |
clover: Use conversion operator to initialize build log from compat::string.
Fixes binary garbage in the compilation logs caused by
compat::string::c_str() not being null-terminated (which is a bug on
its own that will be fixed in another commit).
Reported-by: EdB <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/clover/core')
-rw-r--r-- | src/gallium/state_trackers/clover/core/program.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/state_trackers/clover/core/program.cpp b/src/gallium/state_trackers/clover/core/program.cpp index 30a1f0e0762..6c224dbe083 100644 --- a/src/gallium/state_trackers/clover/core/program.cpp +++ b/src/gallium/state_trackers/clover/core/program.cpp @@ -61,9 +61,9 @@ program::build(const ref_vector<device> &devs, const char *opts) { dev.ir_target(), build_opts(dev), log)); _binaries.insert({ &dev, module }); - _logs.insert({ &dev, std::string(log.c_str()) }); + _logs.insert({ &dev, log }); } catch (const build_error &) { - _logs.insert({ &dev, std::string(log.c_str()) }); + _logs.insert({ &dev, log }); throw; } } |