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

Unified Diff: src/core/SkStream.cpp

Issue 188343004: Actually, we wrote only size bytes. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 9 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkStream.cpp
diff --git a/src/core/SkStream.cpp b/src/core/SkStream.cpp
index e766a1b35e7c18c52e327b8274ff02d244b51a6e..c60f2a738efb10a87f163defae4aca65cbf40ef6 100644
--- a/src/core/SkStream.cpp
+++ b/src/core/SkStream.cpp
@@ -818,7 +818,7 @@ bool SkDebugWStream::write(const void* buffer, size_t size)
s[size] = 0;
SkDebugf("%s", s);
delete[] s;
- fBytesWritten += size+1;
+ fBytesWritten += size;
#endif
return true;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698