Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(250)

Unified Diff: src/gpu/GrTest.cpp

Issue 943453002: Avoid wrong memory access due to double substitution and %% (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « include/utils/SkDebugUtils.h ('k') | src/gpu/gl/GrGLGpu.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrTest.cpp
diff --git a/src/gpu/GrTest.cpp b/src/gpu/GrTest.cpp
index ba9278ed506e05cd4f4bc762bcbee5e02ce3b87f..8df59ff5741052edca556ce2345e931cc1ba3fc8 100644
--- a/src/gpu/GrTest.cpp
+++ b/src/gpu/GrTest.cpp
@@ -51,7 +51,7 @@ void GrContext::dumpCacheStats(SkString* out) const {
void GrContext::printCacheStats() const {
SkString out;
this->dumpCacheStats(&out);
- SkDebugf(out.c_str());
+ SkDebugf("%s", out.c_str());
}
void GrContext::dumpGpuStats(SkString* out) const {
@@ -63,7 +63,7 @@ void GrContext::dumpGpuStats(SkString* out) const {
void GrContext::printGpuStats() const {
SkString out;
this->dumpGpuStats(&out);
- SkDebugf(out.c_str());
+ SkDebugf("%s", out.c_str());
}
#if GR_GPU_STATS
« no previous file with comments | « include/utils/SkDebugUtils.h ('k') | src/gpu/gl/GrGLGpu.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698